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.
sasapixAsked:
Who is Participating?
 
José MéndezConnect With a Mentor Commented:
Hi Sal,

I have been working several days on this solutions and now I have something for your. I am attaching a procedure you can use to transcode from and to g729. As a prove, you will also find the 2 sounds you uploaded as g.729 now in WAV format.  

I used Asterisk 1.8 for this transcoding:

asterisk> file convert /home/you/file.g729 /home/you/ouput/folder/file.wav

Here is how you can do the same in bulk:

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;

It is a small script that invokes asterisk.

I am running out of the office now, so please let me know if there is something not clear.

Hope it helps.
linee-occupate---Copia.txt
0
 
José MéndezCommented:
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.
0
 
sasapixAuthor Commented:
what tool I can use for to convert ?
thanks.

- Salvatore.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
sasapixAuthor Commented:
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.
0
 
José MéndezCommented:
Can you attach the file or is it too big?
0
 
sasapixAuthor Commented:
I must rename files ? the g729 extension isn't allowed for upload.

-
 Salvatore.
0
 
sasapixAuthor Commented:
I send file in txt extension.

-
 Salvatore.
linee-occupate---Copia.txt
orari---Copia.txt
0
 
José MéndezCommented:
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
0
 
sasapixAuthor Commented:
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.
0
 
José MéndezCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.