Created
February 4, 2013 06:54
-
-
Save ipoddubny/4705341 to your computer and use it in GitHub Desktop.
Convert mp3 files into Asterisk native format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# converts .mp3 files in current directory into .sln Asterisk 16-bit signed linear audio | |
for f in *.mp3; do | |
lame --decode $f; | |
done | |
for f in *.wav; do | |
sox $f -t raw -r 8000 -b 16 -c 1 ${f%.wav}.sln | |
rm $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment