summaryrefslogtreecommitdiffstats
path: root/tools/audio_split
diff options
context:
space:
mode:
Diffstat (limited to 'tools/audio_split')
-rwxr-xr-xtools/audio_split4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/audio_split b/tools/audio_split
index 48d3065..8ccd089 100755
--- a/tools/audio_split
+++ b/tools/audio_split
@@ -14,9 +14,11 @@ if [ -z "$1" ]; then
exit 1
fi
+./require sox
# sox FAIL formats: can't open output file `1-left.mp2': SoX was compiled without MP3 encoding support
# kan ikke encode til mp{2,3}...
-echo "Splitting up audio to a left- and right-file..."
+echo -n " * Splitting up audio to a left- and right-file..."
sox $1 -c 1 $NAME-left.wav mixer -l 2> /dev/null
sox $1 -c 1 $NAME-right.wav mixer -r 2> /dev/null
+echo -e "OK!"