Add script ul2wav.sh to convert files from ulaw to wav

This commit is contained in:
Howard M. Harte
2015-05-31 23:12:57 -07:00
parent e7fc07c243
commit b64c28b635

10
ul2wav.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
#
# Script to convert ulaw files to wav using sox.
#
for i in $( find ./ -name "*.ulaw" -printf '%P\n' ); do
filename="${i%.*}"
echo converting: $filename
sox -t ul -r 8000 -c1 $filename.ulaw $filename.wav pad 0.1 0
done