mirror of
https://github.com/romanz/amodem.git
synced 2026-03-27 21:39:06 +08:00
send: stream.Reader should use eof=True
This commit is contained in:
@@ -79,7 +79,7 @@ def main(args):
|
||||
log.info('%.3f seconds of training audio',
|
||||
training_size / wave.bytes_per_second)
|
||||
|
||||
reader = stream.Reader(args.input, 64 << 10)
|
||||
reader = stream.Reader(args.input, 64 << 10, eof=True)
|
||||
data = itertools.chain.from_iterable(reader)
|
||||
encoded = itertools.chain.from_iterable(ecc.encode(data))
|
||||
modulate(args.output, bits=common.to_bits(encoded))
|
||||
|
||||
Reference in New Issue
Block a user