diff options
Diffstat (limited to 'tools/audio_check_volume')
-rw-r--r-- | tools/audio_check_volume | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/audio_check_volume b/tools/audio_check_volume index f914834..37a7239 100644 --- a/tools/audio_check_volume +++ b/tools/audio_check_volume @@ -3,7 +3,11 @@ EXT=`echo "$1"|awk -F . '{print $NF}'` NAME=`basename $1 .$EXT` -if [ -z "$2" ]; then - echo "Usage: $0 <video-file> <csv-file>" +if [ -z "$1" ]; then + echo "Usage: $0 <wav-file>" exit 1 fi + +echo -n " * Checking volume levels..." +sox $1 -n stat -v 2> $1.vol +echo -e "OK!" |