#!/bin/csh
#
# [gfc] Normalize the volume of one wav file.
#

set vol = `sox $1 -e stat -v |& cat -`
echo $1 needs volume adjustment factor of $vol
if ( "$vol" != "1.000" ) then
	echo adjusting $1
	sox -v $vol $1 adjustedfile.wav
	mv -f adjustedfile.wav $1
endif

exit
