[Asterisk-Users] Help using wav files for IVR
beonice
beonice at yahoo.com
Thu Apr 7 14:19:51 MST 2005
--- "trixter http://www.0xdecafbad.com"
<trixter at 0xdecafbad.com> wrote:
> This script does mp3-> wav -> gsm, if you omit the
> first part it should
> work for you. requires mpg123 and sox for wav->gsm
> conversion and
> mp3-decoder to start from mp3.
>
>
> will process all .mp3 files in the current
> directory..
>
> #!/bin/sh
> for i in *.mp3; do
> file=`echo $i | sed -e s/\.mp3$//g`
> mp3-decoder -w "$file.wav" "$i"
> normalize-audio "$file.wav"
> sox "$file.wav" -r 8000 "decafbad-$file.gsm"
> rm "$file.wav"
> done
>
>
>
> for ease will do wav->gsm for your pleasure..
>
> #!/bin/sh
> for i in *.wav; do
> file=`echo $i | sed -e s/\.wav$//g`
> normalize-audio "$i"
> sox "$i" -r 8000 "$file.gsm"
> done
Thanks! This script (modified to just look at the .wav
files) did exactly what I hoped it would ... I now
have decent-sounding gsm files that I can use.
I still don't know why the original wav files were not
played back properly, though.
Thanks again,
Maya
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
More information about the asterisk-users
mailing list