Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

g723 to g711 )over RTP

antonionola
Beginner
474 Views

Does anybody know how to traslatea RTP g723 toRTP g711

Can anyone help me? I examined Speech Coding Sample G.726 but I don't really understand a few thing. Is it corrected the following code _

...........

USC_PCMStream in, outg711;
USC_Bitstream out;

in.pBuffer = tmpInputBuff; /*input RTP Payload*/
pInfo.params.direction = 1; /* Direction: Decode */
/* G723 -> wav */
if(USC_NoError != USC_G723_Fnxs->Decode (hUSCEncoder, &in, &out)) exit(6);
pInfo.params.direction = 0; /* Direction: encode */
/* wav -> G711 */
if(USC_NoError != USC_G11_Fnxs->Encode (hUSCDecoder, &out, &outg711)) exit(6);
send(....,...,outg711.pBuffer);

Thanks in advance,

Antonio

0 Kudos
1 Reply
ligoban
Beginner
474 Views
You can just simply encode your PCM (that you get after decoding g.723) to the g.711. Use IPP for this purpose. Also it is not difficult to find the source code of the g.711 alaw/mulaw and make this encoding without using IPP.
0 Kudos
Reply