[Asterisk-Users] Native MOH - Convert mp3 to ulaw

Bob McDowell bmcdowell at federalprotection.com
Tue Mar 21 14:14:56 MST 2006


My command was:

sox brahms_piano_quartet_n3_44.mp3 -r 8000 -c 1
./brahms_piano_quartet_n3_44.ul

mv  brahms_piano_quartet_n3_44.ul brahms_piano_quartet_n3_44.ulaw


Bob McDowell

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Gavin
Adams
Sent: Tuesday, March 21, 2006 2:49 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw

> 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

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list