[Asterisk-Users] Native MOH - Convert mp3 to ulaw
Gavin Adams
me at gavinadams.org
Tue Mar 21 13:48:57 MST 2006
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Douglas Garstang
>
> I tried that earlier today... found it somewhere online... This is what I
> get...
>
> [root at bil-pdev-5 mp3]# sox -V fpm-calm-river.mp3 -t au -r 8000 -U -b -c 1
> fpm-calm-river.ulaw resample -ql
> sox: resample opts: Kaiser window, cutoff 0.940000, beta 16.000000
>
> sox: Failed reading fpm-calm-river.mp3: Do not understand format type: mp3
Convert the MP3 file to a WAV file first. After installing lame, this is
what I use:
# lame --decode fpm-calm-river.mp3 fpm-calm-river.wav
# sox -V fpm-calm-river.wav -v .2 -r 8000 -c 1 -w fpm-calm-river.raw
# mv fpm-calm-river.raw /var/lib/asterisk/mohraw
I use the -v .2 to drop the volume on the file. Way too loud for our SIP and
PRI connections.
Regards,
--- Gavin
More information about the asterisk-users
mailing list