0

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?

Servy
  • 202,030
  • 26
  • 332
  • 449
Ofek Agmon
  • 5,040
  • 14
  • 57
  • 101

3 Answers3

0

You can find some help here:

http://www.koders.com/csharp/fid5FF057FB1D01EBB06AE9B0DFF096CA01A572D167.aspx

ragklaat
  • 926
  • 5
  • 12
0

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.

0

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.

Mask
  • 647
  • 2
  • 9
  • 21