Add ul2algsm script to convert ulaw to alaw and GSM formats.
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
*.wav
|
||||||
|
*.gsm
|
||||||
|
*.alaw
|
12
ul2algsm.sh
Executable file
12
ul2algsm.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Script to convert ulaw files to alaw and gsm 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 -e a-law $filename.al
|
||||||
|
mv $filename.al $filename.alaw
|
||||||
|
sox -t ul -r 8000 -c1 $filename.ulaw $filename.gsm
|
||||||
|
done
|
Reference in New Issue
Block a user