summaryrefslogtreecommitdiffstats
path: root/tools/audio_gain_volume
diff options
context:
space:
mode:
Diffstat (limited to 'tools/audio_gain_volume')
-rw-r--r--tools/audio_gain_volume7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/audio_gain_volume b/tools/audio_gain_volume
index f914834..92c42d3 100644
--- a/tools/audio_gain_volume
+++ b/tools/audio_gain_volume
@@ -4,6 +4,11 @@ EXT=`echo "$1"|awk -F . '{print $NF}'`
NAME=`basename $1 .$EXT`
if [ -z "$2" ]; then
- echo "Usage: $0 <video-file> <csv-file>"
+ echo "Usage: $0 <wav-file> <volume>"
exit 1
fi
+
+echo -n " * Gaining volume with $2..."
+mv $1 $NAME-old.$EXT
+sox -v $2 $NAME-old.$EXT $1 2> /dev/null
+echo -e "OK!"