Link to home
Start Free TrialLog in
Avatar of sasapix
sasapixFlag for Italy

asked on

g729 audio format

Hello, I have a g729 audio file but in Trixbox I cann't use this format for the new System Recording.
I can convert thi file audio in another format like mp3 or wav ?
Thanks.

-
 Salvatore.
Avatar of José Méndez
José Méndez

Sal,

Are you asking for a tool to convert the g729 audio to mp3? I am not a TRixbox guru, but can recommend a conversion tool.

Let me know.
Avatar of sasapix

ASKER

what tool I can use for to convert ?
thanks.

- Salvatore.
Avatar of sasapix

ASKER

with digium audio-converter software I have this error:

Error: File upload failed. Please contact Digium support (support@digium.com).
but I think that this problem is because I try to convert g729 audio format.
About sox, in documentation there is present:
¿G7xx ADPCM files (read only)
this audio code is good for me ?
I must convert g729 to wav, in this mode I can use audio file in trixbox.
Thanks.

-
 Salvatore.
Can you attach the file or is it too big?
Avatar of sasapix

ASKER

I must rename files ? the g729 extension isn't allowed for upload.

-
 Salvatore.
Avatar of sasapix

ASKER

I send file in txt extension.

-
 Salvatore.
linee-occupate---Copia.txt
orari---Copia.txt
ASKER CERTIFIED SOLUTION
Avatar of José Méndez
José Méndez

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here are the instructions and the remaining file orari---Copia.txt

Be careful with the legalities, G729 codecs must pay royalties. Im not a lawyer so Im not sure how this works in Italy or any other country.
instructions
Avatar of sasapix

ASKER

Hello,
for to convert g729 to wav format if I understood correctly I must creare a script called 'file convert' that contain this command:

for a in *.wav; do rasterisk -x "file convert /var/lib/asterisk/sounds/custom/$a /var/lib/asterisk/sounds/custom/`echo $a|sed "s/.wav/.g729/"`"; done;

Thanks !
-
 Salvatore.
First and most important of all, you must provide a codec_g729.so shared object to your Asterisk install. This is basically the way for Asterisk to have the algorithms necessary to read and transcode g729.

file convert is just a utility built into Asterisk (Im trying 1.8 over here) I would recommend first trying to get the codec running, and then move to the batch script.

Remember to reload your Asterisk once the codec installation finishes, and verify if it loaded the codec by running

core show translation recalc 1

If you see a translation value match from ulaw to g729 for example, then your codec was loaded. Any questions let me know.