Community
cancel
Showing results for 
Search instead for 
Did you mean: 
gur
Beginner
37 Views

G.722 and RTP

Hi. As i understand, G.722 encoder is needed 16000Hz samplerate. If i have 8000Hz pcm I need to change the samplerate.
How i can do this with ipp's help
I have to send by RTP wav file with 8000Hz samplerate, mono.
And one more question. If i receive 20ms RTP packet with 160bytes of G.722 payload, does it means that after G722Decode() with 64Kb i get 640bytes of linearPCM 16000Hz?
Thanks.


0 Kudos
1 Reply
Vyacheslav_Baranniko
New Contributor II
37 Views

Hi There

Resampling can be easily done with usingeither ippsResamplePolyphase* function from ippsr*.lib or ippsFIRMR* function from ipps*.lib.

And you are right, USC supports 20ms frameof G722 which correspond to 20*16*sizeof(short)=640 bytes in 16KHz PCM and 160 bytes in bitstream.

Vyacheslav

IPP, Speech coding