[Freeswitch-svn] [commit] r10973 - freeswitch/trunk/scripts

FreeSWITCH SVN brian at freeswitch.org
Sat Dec 27 11:29:28 PST 2008


Author: brian
Date: Sat Dec 27 14:29:28 2008
New Revision: 10973

Log:
I don't wanna loose this.  ;)


Added:
   freeswitch/trunk/scripts/m4a-to-wav.sh

Added: freeswitch/trunk/scripts/m4a-to-wav.sh
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/m4a-to-wav.sh	Sat Dec 27 14:29:28 2008
@@ -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;



More information about the Freeswitch-svn mailing list