Re: [pjsip] How to play WAV with VAS?

M
mylen
Wed, Oct 21, 2009 3:27 PM

Hi Nanang:
Thanks for reply,now I resolved this problem with some hack,direct copy audio data to pjmedia_frame_ext_append_subframe() in RecCb() callback,it's very ugly,but it works.Maybe the better way should use pjmedia port as you said,can you give me some advice? Thanks again.

Regards

2009-10-21

mylen

Hi,
As hardware codec of VAS-direct, which employs passthrough codec, is
in use, you will need WAV file containing G.729 format and G.729 WAV
player/reader. Unfortunately, pjsua_player/WAV player port only
supports for 16-bit raw and G.711 WAV files, so I am afraid you'll
need to create own pjmedia port to read G.729 WAV file.
BR,
nanang

Hi Nanang: Thanks for reply,now I resolved this problem with some hack,direct copy audio data to pjmedia_frame_ext_append_subframe() in RecCb() callback,it's very ugly,but it works.Maybe the better way should use pjmedia port as you said,can you give me some advice? Thanks again. Regards 2009-10-21 mylen Hi, As hardware codec of VAS-direct, which employs passthrough codec, is in use, you will need WAV file containing G.729 format and G.729 WAV player/reader. Unfortunately, pjsua_player/WAV player port only supports for 16-bit raw and G.711 WAV files, so I am afraid you'll need to create own pjmedia port to read G.729 WAV file. BR, nanang