Skip to content

Commit

Permalink
Add sox's -v option to fix: sox WARN dither: dither clipped 1 samples…
Browse files Browse the repository at this point in the history
…; decrease volume?
  • Loading branch information
laqieer committed Oct 11, 2021
1 parent 74988a5 commit d5a22aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/test_frequency_and_SNR.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
for freq in magic_rates:
audio_name, audio_ext = os.path.splitext(audio_file)
audio_freq = audio_name + "-" + str(freq) + audio_ext
os.system("sox " + audio_file + " -G -r " + str(freq) + " -b 8 -c 1 " + audio_freq)
os.system("sox -G -v 0.92 " + audio_file + " -r " + str(freq) + " -b 8 -c 1 " + audio_freq)
if audio_ext in ('.wav', '.WAV'):
audio_module = wave
else:
Expand Down

0 comments on commit d5a22aa

Please sign in to comment.