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: [email protected] [mailto:asterisk-users-
> [email protected]] On Behalf Of Bryant Zimmerman
> Sent: Thursday, July 28, 2011 3:44 PM
> To: [email protected]; Asterisk Users Mailing List - Non-Commercial
> Discussion
> Subject: Re: [asterisk-users] MoH - conversion command
>
>
>
> ________________________________
>
> From: "Mike" <[email protected]>
> Sent: Thursday, July 28, 2011 1:29 PM
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-
> [email protected]>
> 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.)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users