I’m working to VOIP Windows Phone project (Soft-phone application for Windows Phone). At the present, I (Windows phone soft-phone) can receive and heard voice of another soft-phone, only ONE-WAY. I can send my voice (RTP packets) to another soft-phone, but it contains full noise. I followed this http://www.codeproject.com/Articles/14237/Using-the-G711-standard?msg=2573223#xx2573223xx to encode and decode RTP packet between U-law and PCM. The decoding function worked well with me, but encoding didn’t.
I decoded RTP packet and play it with sample rate is 8000Khz (it is sample rate of U-law format). Here's my code to play it :
SoundEffect soundEffect = new SoundEffect(buffer, 8000, AudioChannels.Mono);
SoundEffectInstance soundInstance = soundEffect.CreateInstance();
soundInstance.Play();
And about encoding, I used microphone of Windows Phone to record voice=>encode to U-Law format=>put into RTP packet=>Send. But these packets contain full noise and another soft-phone (destination call) only receive noise and noise.
The format of recorded data of microphone is : PCM 16 bit - 16KHz. Do you have any solutions to help me to solve it?
Regards and thank you a lot.