Upload of windows batch file that will take any sound and push it to maximum volume. Usefull when creating wav files!

This commit is contained in:
rob@marotori.com
2012-07-04 09:03:40 +00:00
parent b78533f86c
commit 8989ce4e6c
+16
View File
@@ -0,0 +1,16 @@
echo off
echo Getting max amplitude..
sox %1.wav -n stat -v 2> %1_apl.txt
Set /P apl_value= < %1_apl.txt
echo Normalizing audio.. gain: %apl_value%
sox --show-progress -v %apl_value% %1.wav %1_norm.wav
copy %1_norm.wav %1.wav
echo Cleaning..
del %1_norm.wav
del %1_apl.txt