Hi, I've been trying to get MoH files to sound decent. I've got a hold of Royalty-free Classical music (a safe choice for most of my customers) and I`ve been trying to convert them to the normal telephony/Asterisk format using sox. Unfortunately, it sounds really bad. I don't expect concert hall quality of course, 8000KHz being what it is, but is there a better way to convert from good quality .wav files to 8000Khz ? Am I using the wrong tool? Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110728/7d03a5d3/attachment.htm>
On 07/28/2011 10:53 AM, Mike wrote:> Hi, > > I?ve been trying to get MoH files to sound decent. I?ve got a hold of > Royalty-free Classical music (a safe choice for most of my customers) > and I`ve been trying to convert them to the normal telephony/Asterisk > format using sox. Unfortunately, it sounds really bad. I don?t expect > concert hall quality of course, 8000KHz being what it is, but is there > a better way to convert from good quality .wav files to 8000Khz ? Am I > using the wrong tool?Can you elaborate as to what you mean by "really bad"? What acoustic artifacts are you encountering? Are you testing from a mobile phone? Cell phones use variable bit rate codecs and at times, vicious compression, depending on signal strength and other factors. Anything is going to sound like crap on them regardless. Make sure you are testing from a reasonable endpoint. -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/
On Thu, 28 Jul 2011, Mike wrote:> I?ve got a hold of Royalty-free Classical music (a safe choice for most > of my customers) and I`ve been trying to convert them to the normal > telephony/Asterisk format using sox.? Unfortunately, it sounds really > bad.I convert files using: sox "${INPUT}" -c 1 -s -w -r 8000 /tmp/$$.wav What does your sox command line look like? Can you post a link to 'before' and 'after' files? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
> > > I should have said I am trying this both from a landline using ulaw, > > and from a Polycom phone using g729 codec. G729 is noticeablty worst, > > as you`d expect, maybe this is what is reported by my customers. > > > > Is there any way to have a "decent" g729 file, or should I just give > > up and change everyone to ulaw ? > > G.729 is a *speech* codec, and as such it does not handle non-speech > (music, tones, etc.) very well at all. >Hi Kevin, I understand that perfectly, I was just wondering if there was a "less bad" way of converting music to g729 format so people find the quality bad, but don`t feel like cutting their ears off. Regards, Mike
---------------------------------------- From: "Mike" <list at net-wall.com> Sent: Thursday, July 28, 2011 1:29 PM To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] MoH - conversion command>> > I should have said I am trying this both from a landline using ulaw,> > and from a Polycom phone using g729 codec. G729 is noticeablty worst,> > as you`d expect, maybe this is what is reported by my customers.> >> > Is there any way to have a "decent" g729 file, or should I just give> > up and change everyone to ulaw ?>> G.729 is a *speech* codec, and as such it does not handle non-speech> (music, tones, etc.) very well at all.>Hi Kevin, I understand that perfectly, I was just wondering if there was a "less bad" way of converting music to g729 format so people find the quality bad, but don`t feel like cutting their ears off. Regards, Mike Kevin I have used the asterisk cli to do my conversion to g729. I have gotten the best results there. Thanks Bryant Zimmerman (ZK Tech Inc.) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110728/02b5c7ca/attachment.htm>
---------------------------------------- From: "Mike" <list at net-wall.com> Sent: Thursday, July 28, 2011 1:29 PM To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] MoH - conversion command>> > I should have said I am trying this both from a landline using ulaw,> > and from a Polycom phone using g729 codec. G729 is noticeablty worst,> > as you`d expect, maybe this is what is reported by my customers.> >> > Is there any way to have a "decent" g729 file, or should I just give> > up and change everyone to ulaw ?>> G.729 is a *speech* codec, and as such it does not handle non-speech> (music, tones, etc.) very well at all.>Hi Kevin, I understand that perfectly, I was just wondering if there was a "less bad" way of converting music to g729 format so people find the quality bad, but don`t feel like cutting their ears off. Regards, Mike Kevin I have used the asterisk cli to do my conversion to g729. I have gotten the best results there. cli file convert in_file out_file asterisk -x "file convert in_file out_file" Thanks Bryant Zimmerman (ZK Tech Inc.) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110728/2fa24094/attachment.htm>