[asterisk-users] MoH - conversion command
Eric Wieling
EWieling at nyigc.com
Thu Jul 28 14:51:09 CDT 2011
In order to get the proper encoding for Asterisk, you must provide the
correct values for each of these characteristics. In your case, they
are as follows:
rate = 8000
data size = 8-bit (byte)
data encoding = gsm
channels = 1 (mono)
Therefore, the command you would use to create your native MOH files is:
sox in.wav -t gsm -r 8000 -b -c 1 out.gsm
As G729 is a patented codec and so not available in Free Software, you'll have to figure out how to translate those values for whatever software you are using to create G729 files.
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Bryant Zimmerman
> Sent: Thursday, July 28, 2011 3:44 PM
> To: bryantz at zktech.com; Asterisk Users Mailing List - Non-Commercial
> Discussion
> Subject: Re: [asterisk-users] MoH - conversion command
>
>
>
> ________________________________
>
> 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.)
More information about the asterisk-users
mailing list