?
Solved

g729 audio format

Posted on 2011-04-21
11
Medium Priority
?
2,133 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:sasapix
  • 6
  • 5
11 Comments
 
LVL 20

Expert Comment

by:José Méndez
ID: 35450996
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
 

Author Comment

by:sasapix
ID: 35465184
what tool I can use for to convert ?
thanks.

- Salvatore.
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 35469218
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:sasapix
ID: 35473302
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
 
LVL 20

Expert Comment

by:José Méndez
ID: 35475158
Can you attach the file or is it too big?
0
 

Author Comment

by:sasapix
ID: 35475231
I must rename files ? the g729 extension isn't allowed for upload.

-
 Salvatore.
0
 

Author Comment

by:sasapix
ID: 35489870
I send file in txt extension.

-
 Salvatore.
linee-occupate---Copia.txt
orari---Copia.txt
0
 
LVL 20

Accepted Solution

by:
José Méndez earned 2000 total points
ID: 35502402
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
 
LVL 20

Expert Comment

by:José Méndez
ID: 35502408
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
 

Author Comment

by:sasapix
ID: 35503577
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
 
LVL 20

Expert Comment

by:José Méndez
ID: 35503782
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

Featured Post

Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my office we had 10 Cisco 7940G IP phones that were useless as they were showing PROTOCOL APPLICATION INVALID when started. I searched through Google and worked for a week continuously on those phones, and finally got them working. This is a di…
Hey there Heard about jingle, the add on for XMPP that enables point to point audio between two XMPP clients. No server config necessary. Actually quite a cool feature. However, how good is it if you can not use those voice capabilities to do a P…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question