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?
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.
IPP, Speech coding