I don't wanna loose this. ;)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10973 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-12-27 19:29:28 +00:00
parent 1165e28323
commit afea7422b6
1 changed files with 8 additions and 0 deletions

8
scripts/m4a-to-wav.sh Normal file
View File

@ -0,0 +1,8 @@
for file in *.m4a; do name=`echo $file | sed "s/\ /\_/g" | sed "s/.m4a//"`; \
echo "Convert m4a $file to $name.wav"; faad -o $name.wav "$file" > /dev/null 2>&1; \
for rate in 8000 16000 32000 48000; do mkdir -p $rate; \
echo "Creating $rate kHz -> $rate/$name.wav"; \
sox $name.wav -c 1 -r $rate $rate/$name.wav vol 0.06; \
done; \
rm -f *.wav; \
done;