diff options
Diffstat (limited to 'tools/audio_remove_noise')
-rw-r--r-- | tools/audio_remove_noise | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/audio_remove_noise b/tools/audio_remove_noise index f914834..05c9a5f 100644 --- a/tools/audio_remove_noise +++ b/tools/audio_remove_noise @@ -3,7 +3,14 @@ EXT=`echo "$1"|awk -F . '{print $NF}'` NAME=`basename $1 .$EXT` -if [ -z "$2" ]; then - echo "Usage: $0 <video-file> <csv-file>" +NOISE="0.1" + +if [ -z "$1" ]; then + echo "Usage: $0 <wav-file> [<noise-profile-file>]" exit 1 fi + +echo -n " * Removing noise with $NOISE..." +mv $1 $NAME-old.$EXT +sox $NAME-old.$EXT $NAME.wav noisered $NAME.noise-profile $NOISE 2> /dev/null +echo -e "OK!" |