[Speex-dev] Re: How to reduce jitter buffer size?

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Tue Jan 30 06:23:52 PST 2007


The buffer size of 200 frames has nothing to do with the delay, it's
only the *maximum* number of frames that can be buffered. The Speex
jitter buffer is adaptive and will only use just as much as is required
to compensate for the jitter.

	Jean-Marc

Andy Ngo a écrit :
> Hi,
> 
> I looked at the jitter buffer code and it seems like the maximum number of frames
> that Speex can hold up to is 200 (SPEEX_JITTER_MAX_BUFFER_SIZE).  This is
> equivalent to 4 seconds (20msec/frame * 200 frames).  Can I just reduce this
> constant to limit the size?  I know I'll reduce the smoothness of delayed frames
> but I want to reduce the delay in case my audio application isn't servicing the
> frames in time and hence the delay will grow as more frames are queued up.  I
> pretty real time voice if there's a little interruption in the voice stream.
> 
> Regards,
> Andy


More information about the Speex-dev mailing list