Difference between revisions of "Converting Sound Files With Asterisk"
Dcunningham (talk | contribs) (Created page with "This shell script will convert file formats using Asterisk. As an example, it converts the Enswitch sound files from g722 to gsm: <code>cd /opt/enswitch/current/sounds/en/<br...") |
(No difference)
|
Latest revision as of 00:03, 25 February 2015
This shell script will convert file formats using Asterisk. As an example, it converts the Enswitch sound files from g722 to gsm:
cd /opt/enswitch/current/sounds/en/
for oldfile in `find . -name "*.g722"`
do
- newfile=`echo $oldfile | sed 's/g722/gsm/'`
- asterisk -rx "file convert $oldfile $newfile"
done