DSPRelated.com
Forums

Problem in decoding g729 audio samples

Started by krav...@gmail.com June 13, 2008
My aim is to dump the G.729 encoded audio samples packetized in RTP payload and then convert the G.729 encoded samples to MP3 format.

What i'm doing:

1. I got the G.729 encoded audio samples from RTP payload and saved as g729audio.ul on my machine using my c programm.

2. I'm using SOX as my converter to convert g729audio.ul to audio.wav(wav format).
3. Then, i'm using bladeencoder to convert audio.wav to audio.mp3

But, when i try to playback audio.mp3 on windows m/c, the audio is scrumbled, i cant be able to hear the voice conversation!
could anyone tell me why the audio.mp3 is scramblled?

Thanks very much
> 1. I got the G.729 encoded audio samples from RTP payload and saved as
> g729audio.ul on my machine using my c programm.

> 2. I'm using SOX as my converter to convert g729audio.ul to
audio.wav(wav format).

> 3. Then, i'm using bladeencoder to convert audio.wav to audio.mp3

> But, when i try to playback audio.mp3 on windows m/c, the audio is
> scrumbled,

Does the WAVE file sound ok on Windows? If no, either your depacketizer or
SOX have problem. If yes, verify settings of MP3 encoder or try another
one.

--
Grzegorz Kraszewski
http://teleinfo.pb.edu.pl/~krashan