if start.minute % 15 != 0:
delay = (start.minute % 15) * 60
tmpfile = os.path.join(tmpdir, md5.md5(str(random.random())).hexdigest()) + '.wav'
- os.system('sox --show-progress %s %s trim %d %d' % (
+ os.system('sox %s %s trim %d %d' % (
filenames[0], output, delay, 15*60-delay))
filenames[0] = tmpfile
if end.minute % 15 != 0:
delay = (end.minute % 15) * 60
tmpfile = os.path.join(tmpdir, md5.md5(str(random.random())).hexdigest()) + '.wav'
- os.system('sox --show-progress %s %s trim 0 %d' % (filenames[-1], tmpfile, delay))
+ os.system('sox %s %s trim 0 %d' % (filenames[-1], tmpfile, delay))
filenames[-1] = tmpfile
tmpfile = os.path.join(tmpdir, md5.md5(str(random.random())).hexdigest()) + '.wav'
if len(filenames) > 1:
- os.system('sox --show-progress %s %s' % (' '.join(filenames), tmpfile))
+ os.system('sox %s %s' % (' '.join(filenames), tmpfile))
shutil.move(tmpfile, output)
else:
shutil.copy(filenames[0], output)