i have got a music file with extension mp3 and it is not workign with background() is there any way to convert the mp3 to gsm or any other codec? Kindest Muhammad Muzzamil Luqman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050222/2ba5a4f0/attachment.htm
I use the following recipe for this in Linux... mp3-decoder -w outfile.wav infile.mp3 normalize outfile.wav sox outfile.wav -r 8000 outfile.gsm Things sound pretty good like that. You can do it with sox at one shot but I like the normalization so all of my recordings sound approximately the same. All of those programs can be found via Freshmeat.net or Google, etc. On Tue, 2005-02-22 at 21:55 +0500, Muhammad Muzzamil Luqman wrote:> i have got a music file with extension mp3 and it is not workign with > background() > > is there any way to convert the mp3 to gsm or any other codec? > > Kindest > Muhammad Muzzamil Luqman > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On Tue, 2005-02-22 at 21:55 +0500, Muhammad Muzzamil Luqman wrote:> i have got a music file with extension mp3 and it is not workign with > background() > > is there any way to convert the mp3 to gsm or any other codec?Yeah, we could send you to remedial linux classes where you would learn how to ask either your own machine the question or ask google. Go look at sox, you may have to use mpg123 as well. Or you could just go figure out why you broke background with respect to playing mp3. -- Steven Critchfield <critch@basesys.com>
Take a look at this URL: http://www.voip-info.org/tiki-index.php?page=Asterisk%20sound%20files I?ve used the following command sox inputfile.wav -r 8000 -c 1 outputfile.gsm resample -ql hope this helps Gr?sse / Best Regards Mateo Meier ? ------------------------------------------------------------------------- Don't marry for money; you can borrow it cheaper ;-) ? ________________________________________ Von: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Im Auftrag von Muhammad Muzzamil Luqman Gesendet: Dienstag, 22. Februar 2005 17:56 An: asterisk-users@lists.digium.com Betreff: [Asterisk-Users] mp3 to gsm? i have got a music file with extension mp3 and it is not workign with background() ? is there any way to convert the mp3 to gsm or any other codec? ? Kindest Muhammad Muzzamil Luqman
Muhammad Muzzamil Luqman wrote:> i have got a music file with extension mp3 and it is not workign with > background()First off, why are you trying to background an MP3? If you are backgrounding music, then you should probably be using Music on Hold. If you are using mp3's for audio prompts in an auto attendant, don't. There are many other ways that are significantly less resource intensive. Second, to anyone who has done any research about Asterisk, the answer as to why it is not working is blindingly obvious. If you were really trying to do music on hold, http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20MusicOnHold . If you want MoH to play MP3 files, http://www.voip-info.org/tiki-index.php?page=mpg123> is there any way to convert the mp3 to gsm or any other codec?http://www.voip-info.org/tiki-index.php?page=Asterisk%20sound%20files http://www.voip-info.org/tiki-index.php?page=Convert%20WAV%20audio%20files%20for%20use%20in%20Asterisk -- Aaron Johnson Star Networks Main: 602-889-3000 | Office: 602-889-3002 | Cell: 602-741-4660