I tried that earlier today... found it somewhere online... This is what I get...
[EMAIL PROTECTED] 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 > -----Original Message----- > From: Doug Lytle [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 21, 2006 1:28 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw > > > Douglas Garstang wrote: > > Tried it. It doesn't seem to like converting to ulaw, > unless I'm doing something wrong. The man page mentions ulaw > briefly, but doesn't say HOW to convert to it. > > > > Doug. > > > > > >> -----Original Message----- > >> From: Bob McDowell [mailto:[EMAIL PROTECTED] > >> Sent: Tuesday, March 21, 2006 12:58 PM > >> To: Asterisk Users Mailing List - Non-Commercial Discussion > >> Subject: RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw > >> > >> > >> > >> I don't know for sure about the formats, but I'd try sox. > I'm pretty > >> sure pcm/ulaw is built in... > >> > I use the following script. Make sure there are no spaces in > the filenames: > > cat convert.sh > > #!/bin/sh > > for filename in *mp3 > > do > > eval filename=`echo $filename | cut -f1 -d.` > > echo Converting $filename > > sox -V $filename.mp3 -t au -r 8000 -U -b -c 1 $filename.ulaw > resample -ql > > > > Doug > > _______________________________________________ > --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 > _______________________________________________ --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