diff options
author | Ole Kristian Lien <ole.k.lien@gmail.com> | 2010-01-14 08:19:30 +0000 |
---|---|---|
committer | Ole Kristian Lien <ole.k.lien@gmail.com> | 2010-01-14 08:19:30 +0000 |
commit | 8f002067fcf300234be68bd2b01b178c931bb2fe (patch) | |
tree | 416fc47b19dfeed5b66ddc8fa175d28f09b5e3a2 /tools/audio_check_noise | |
parent | 9b6e7c30bc1687c10c49413871588d17baf1b94f (diff) |
div. fix
Diffstat (limited to 'tools/audio_check_noise')
-rw-r--r-- | tools/audio_check_noise | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/audio_check_noise b/tools/audio_check_noise index f914834..e08fc01 100644 --- a/tools/audio_check_noise +++ b/tools/audio_check_noise @@ -3,7 +3,16 @@ 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 + +if [ $EXT == "wav" ] ; then + echo -n " * Generating noise-profile..." +# sox $1 -n trim 0 1.5 noiseprof $NAME.noise-profile + sox $1 -n noiseprof $NAME.noise-profile + echo -e "OK" +else + echo "Error: need .wav" +fi |