mirror of
https://github.com/romanz/amodem.git
synced 2026-03-31 08:06:50 +08:00
recv: add audio dumping option (for debugging)
This commit is contained in:
@@ -124,13 +124,16 @@ def main():
|
||||
'-o', '--output', help='output file (use "-" for stdout).')
|
||||
receiver.add_argument(
|
||||
'-c', '--calibrate', default=False, action='store_true')
|
||||
receiver.add_argument(
|
||||
'-d', '--dump', type=FileType('wb'),
|
||||
help='Filename to save recorded audio')
|
||||
receiver.add_argument(
|
||||
'--plot', action='store_true', default=False,
|
||||
help='plot results using pylab module')
|
||||
receiver.set_defaults(
|
||||
main=lambda config, args: recv.main(
|
||||
config, src=args.src, dst=wrap(Decompressor, args.dst, args.zip),
|
||||
pylab=args.pylab
|
||||
pylab=args.pylab, dump_audio=args.dump
|
||||
),
|
||||
calib=lambda config, args: calib.recv(
|
||||
config, src=args.src, verbose=args.verbose
|
||||
|
||||
Reference in New Issue
Block a user