DSPRelated.com
Forums

G729 Raw Format

Started by wajd...@laposte.net March 15, 2008
Hello,
Im a final year student of engineering.I must create an application to capture and store voip LAN traffic i use the library winpcap(libpacp) to capture the voip packet on the LAN and I don't know how create a bitstream file (raw format) in the format required by the ITU-T G729

I am sorry for my bad english
Please help me

Regards,
TORKHANI Wajdi
Thank you so much

After 4 weeks I can finally to hear the voice,
But now I have another problem!
If i record only one direction the sound run very quickly and if record both direction i have a very very very bad quality of voice !!!!

1-I record the payload in a binary file:

Code:

void rawfile(unsigned char * payload,FILE *f){
fwrite(payload, 10,1,f); //10 :because audio data is packed into 80 bits (10 bytes)
}

2- I decode the binary file by using voiceage G729, which gives me a file : "16-bit mono PCM speech data sampled at 8000 Hz"

3- convert PCM file into wav by using Lame with:
lame --decode -x -r -s 8000 -m m -b 16 file.pcm file.wav

Is it correct ?!
----- Original Message -----
From: w...@laposte.net
To: s...
Sent: Saturday, March 15, 2008 12:35 AM
Subject: [speechcoding] G729 Raw Format
Hello,
Im a final year student of engineering.I must create an application to capture and store voip LAN traffic i use the library winpcap(libpacp) to capture the voip packet on the LAN and I don't know how create a bitstream file (raw format) in the format required by the ITU-T G729

I am sorry for my bad english
Please help me

Regards,
TORKHANI Wajdi