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

Bob McDowell bmcdowell at federalprotection.com
Tue Mar 21 15:04:34 MST 2006


This is exactly how I resolved the dependencies on my CentOS box.  YMMV.
---

Ala - http://hawknotes.blogspot.com/2005/07/putting-mp3s-into-sox.html

Add dag as a repository...

--  /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
--

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

yum install libmad libmad-devel lame lame-devel rpm-build
libvorbis-devel alsa-lib-devel

rpmbuild --rebuild sox-12.17.9-1.src.rpm

rpm -e --nodeps sox

rpm -i /usr/src/redhat/RPMS/i386/sox-12.17.9-1.i386.rpm
/usr/src/redhat/RPMS/i386/sox-devel-12.17.9-1.i386.rpm

---- 


Bob McDowell

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

Good grief. Considering all the libraries and requirements, it'd almost
be easier to find some windows software to do this.

> -----Original Message-----
> From: Doug Lytle [mailto:Support at drdos.info]
> Sent: Tuesday, March 21, 2006 1:55 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
> 
> 
> Douglas Garstang wrote:
> > 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
> >
> >   
> 
> I believe you also need libmp3.  Under Mandrake it's called libgmp3.
> 
> 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






More information about the asterisk-users mailing list