Question

I have a byte array with RTP packets in it.

I am not using a SIP client, I just have the array.

Is there an option to decode the packets in g.729 and then record the voice and save it into a WAV file?

Was it helpful?

OTHER TIPS

you need a g.729 decoder for decoding the payload from the rtp packets. as far as i know audacity is capable of doing this job. extract the raw data from the rtp stream with wireshark and then decode the audio data ... this should work.

Write rtp byte array to a raw file. Then you can convert that file to mp3 by using ffmpeg.exe with g729 decode command.

ffmpeg.exe -f alaw -ar 8000  -i " + rawFile + ".raw " + rawFile + ".mp3 

Above is the command to convert to mp3.

All the best.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top