Bulk IVR Normalize wav files
IVR audio files should on average have a max volume of 50% which is -6dB This batch file uses the command line utility sox to normlizes wav files within a folder and sub folder to this level.
Prior to using this batch file include sox. Note: You may need to adjust Sox folder in the PATH in the batch depending on Sox version.
@echo off
: Normalize wav files to -6db (~50% max volume)
: Note will overwrite existing files so take a backup!
: Version 0.1
REM Set the PATH to include sox folder
PATH=%PATH%;C:\sox-14-3-1
echo *********************************
echo Normalize wav files to -6dB
echo *********************************
echo.
echo This application will overwrite existing wav files in the current and all sub folders.
echo Take a backup of all files BEFORE running this app.
echo.
echo ******************************************************************
echo.
set /P confirm=Do you want to proceed and overwrite and normlize existing.wav files (Y/N)?
IF "%confirm%" == "Y" goto convert
IF "%confirm%" == "y" goto convert
goto noconvert
:convert
echo Please wait...
FOR /R . %%a IN ("*.wav") DO (
echo Normalizing %%a
sox "%%a" "%%pna-tmp.wav" norm -6
move "%%pna-tmp.wav" "%%a"
)
pause
exit
:noconvert
echo - No converation took place as user chose not to.
pause