From 8989ce4e6cc45cf122c924c9849d350d41ca97b7 Mon Sep 17 00:00:00 2001 From: "rob@marotori.com" Date: Wed, 4 Jul 2012 09:03:40 +0000 Subject: [PATCH] Upload of windows batch file that will take any sound and push it to maximum volume. Usefull when creating wav files! --- util/maxvolume.cmd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 util/maxvolume.cmd diff --git a/util/maxvolume.cmd b/util/maxvolume.cmd new file mode 100644 index 000000000..221ddafd7 --- /dev/null +++ b/util/maxvolume.cmd @@ -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 +