[asterisk-users] codec conversion

Russell Bryant russell at digium.com
Tue Aug 1 16:35:07 MST 2006


On Tue, 2006-08-01 at 18:23 -0400, Wasif wrote:
> What is the best utility to convert GSM files into G729 files for batch
> processing.

I don't think sox supports G729.  However, you can actually use Asterisk
to do this for you if you use the trunk, or upcoming 1.4 release.  In
the trunk, there is a "convert" CLI command.

First, you will need to download codec_g729a.so from Digium.  You will
also need some licenses to use it.

Then, to convert a directory a bunch of gsm files, you could do
something like this ...

   # for n in `ls *.gsm`; do asterisk -rx "convert $n `basename
$n .gsm`.g729"; done

-- 
Russell Bryant
Software Developer
Digium, Inc.




More information about the asterisk-users mailing list