RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
On Tuesday, March 21, 2006 9:36 PM Douglas Garstang wrote: 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.94, beta 16.00 sox: Failed reading fpm-calm-river.mp3: Do not understand format type: mp3 Not all SOX versions support mp3. Some distros (at least Suse) compile sox without mp3 support. Either compile your own version with mp3 or convert the files to wav first. Regards, JP smime.p7s Description: S/MIME cryptographic signature ___ --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
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... Bob McDowell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Tuesday, March 21, 2006 11:03 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Native MOH - Convert mp3 to ulaw I'd like to use native moh instead of with mpg123... for some reason the processes never bloody die. For native moh to not spawn an external player, I'd need to convert the default supplied moh sound files in /var/lib/asterisk/mohmp3 to ulaw and g729 format. Anyone know of a free, easy way to convert them? Thanks, 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
RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
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... Bob McDowell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Tuesday, March 21, 2006 11:03 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Native MOH - Convert mp3 to ulaw I'd like to use native moh instead of with mpg123... for some reason the processes never bloody die. For native moh to not spawn an external player, I'd need to convert the default supplied moh sound files in /var/lib/asterisk/mohmp3 to ulaw and g729 format. Anyone know of a free, easy way to convert them? Thanks, 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 ___ --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
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
RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
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.94, beta 16.00 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
RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
Did you already solve the 'sox not supporting mp3' problem? I think the file extension for ulaw is '.ul' in sox. (Per the bottom of http://www.waveformsoftware.com/SoX_Wrap/soxhelp.htm) Is there a way to test that assumption? Bob McDowell Services Administrator Federal Protection, Inc (417) 869 9192 x 230 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Tuesday, March 21, 2006 2:07 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw 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... Bob McDowell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Tuesday, March 21, 2006 11:03 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Native MOH - Convert mp3 to ulaw I'd like to use native moh instead of with mpg123... for some reason the processes never bloody die. For native moh to not spawn an external player, I'd need to convert the default supplied moh sound files in /var/lib/asterisk/mohmp3 to ulaw and g729 format. Anyone know of a free, easy way to convert them? Thanks, 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 ___ --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
RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Douglas Garstang 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.94, beta 16.00 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
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... [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.94, beta 16.00 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
RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Douglas Garstang 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.94, beta 16.00 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 ___ --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
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:[EMAIL PROTECTED] 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... [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.94, beta 16.00 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
Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
Audacity? PaulH - Original Message - From: Douglas Garstang [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Wednesday, March 22, 2006 8:25 AM 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:[EMAIL PROTECTED] 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... [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.94, beta 16.00 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 ___ --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
RE: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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... [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.94, beta 16.00 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 ___ --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
Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
Douglas Garstang wrote: Good grief. Considering all the libraries and requirements, it'd almost be easier to find some windows software to do this. Wavepad works well, without complaining about libraries, and you can even edit. listen to the results and back out,if need be. Harder to use for those who aren't sighted, though John Novack -Original Message- From: Doug Lytle [mailto:[EMAIL PROTECTED] 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... [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.94, beta 16.00 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
Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
John Novack wrote: Wavepad works well, without complaining about libraries, and you can even edit. listen to the results and back out,if need be. Harder to use for those who aren't sighted, though John Novack You could also use Audacity, which has a bunch of filters and effects that you can use, like echo, equalization, high/low pass, noise filters etc. Speaking of noise filters, I really like the one used in Goldwave. Quite useful for people who use el-cheapo mics and record in a somewhat noisy environment (yours truly included). Flynn ___ --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
Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
On 3/22/2006, John Novack [EMAIL PROTECTED] wrote: Douglas Garstang wrote: Good grief. Considering all the libraries and requirements, it'd almost be easier to find some windows software to do this. Wavepad works well, without complaining about libraries, and you can even edit. listen to the results and back out,if need be. Harder to use for those who aren't sighted, though Of course he can just use mpg123 and convert it to a wave. Then use sox to convert it to whatever... Brett ___ --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
Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
try this: http://www.oinko.net/astrecipes/index.php?n=152 On 3/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 3/22/2006, John Novack [EMAIL PROTECTED] wrote: Douglas Garstang wrote: Good grief. Considering all the libraries and requirements, it'd almost be easier to find some windows software to do this. Wavepad works well, without complaining about libraries, and you can even edit. listen to the results and back out,if need be. Harder to use for those who aren't sighted, thoughOf course he can just use mpg123 and convert it to a wave. Then use sox to convert it to whatever...Brett___--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
Re: [Asterisk-Users] Native MOH - Convert mp3 to ulaw
On Mar 21, 2006, at 1:25 PM, Douglas Garstang wrote: Good grief. Considering all the libraries and requirements, it'd almost be easier to find some windows software to do this. I prefer the Mac for audio stuff. Did you find the slick website that does conversions? http://www.asteriskguru.com/audio_conversion.php ___ --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