[asterisk-users] How do you convert your prompts to an asterisk-friendly format?

Andrew Latham lathama at gmail.com
Tue Aug 28 09:44:37 CDT 2012


On Tue, Aug 28, 2012 at 10:39 AM, Johan Wilfer <lists at jttech.se> wrote:
> Hi,
>
> I've used the shells-script at the end of this email to generate 8khz mono
> wave-files for asterisk from a 144 khz recording.
>
> The script does two things: resample & normalize the audio volume.
>
> Anyone like to share their recommendations / scripts for doing this
> conversion? I've just converted to 8khz wave, should I convert to something
> else?
>
> For the googler in the future this is my current script (which I hope to
> improve):
>
> BASEDIR=`dirname $0`
> PROMPTDIRS="dir1 dir2"
> for dir in ${PROMPTDIRS}
> do
>   src=${BASEDIR}/recordings/prompts/${dir}
>   dst=${BASEDIR}/generated/prompts/8khz/${dir}
>   for i in ${src}/*.wav; do sox "$i"  -V -r 8000 -c 1 -q -s \
> "${dst}/$(basename "$i" .wav).wav" vol 0.8; done
>
>   normalize-audio -a -20dBFS "${dst}"/*
> done
>
>
> --
> Johan Wilfer
>
> JT Technologies & Telecommunications AB
> Jabber: johan at jttech.se | Phone: +46 31 3809100


Try this to test with
http://www.digium.com/en/products/ivr/audio-converter.php and compare
your output first...

-- 
~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~



More information about the asterisk-users mailing list