Reza Fatahillah
2006-Sep-07 02:09 UTC
[Speex-dev] Single frame or multiple frame inside rtp packet?
Hi, Sorry if my question not related to speex. I have created a voip application using speex. My internet line is 64Kbps. I`m using narrow band mode, 8000 bitrate, 20ms of 8000Khz sampling rate, no buffering, no preprocessing, just set bitrate and go. When i send single frame inside rtp the sound was not good, choppy and noisy. But when i pack around 8 frame inside rtp packet, the sound was better. My question are: 1. Which one is best practice? 2. How to correctly measure bandwidth usage of speex packet? Thanks for any help Reza __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Jean-Marc Valin
2006-Sep-07 02:47 UTC
[Speex-dev] Single frame or multiple frame inside rtp packet?
> I have created a voip application using speex. My > internet line is 64Kbps. > I`m using narrow band mode, 8000 bitrate, 20ms of > 8000Khz sampling rate, no buffering, no preprocessing, > just set bitrate and go. > > When i send single frame inside rtp the sound was not > good, choppy and noisy. But when i pack around 8 frame > inside rtp packet, the sound was better.Most likely reason is that it's not related to bandwidth, but that you probably screwed up either the network or the audio buffering.> My question are: > 1. Which one is best practice?It's usually best to use one (or at most two) frames per packet because of latency.> 2. How to correctly measure bandwidth usage of speex > packet?The overall bandwidth using RTP is: speex_bitrate + 16kbps/frames_per_packet Jean-Marc