[speex-dev] Speex latency
Simon Morlat
simon.morlat at linphone.org
Fri Mar 21 06:30:01 PST 2003
Hi,
Speex's latency at 8khz is 20 ms. Which is under the latency of most
cards.
If you are using alsa-driver with oss-emulation in your program, you
have to use the SNDCTL_DSP_SUBDIVIDE to divide the size of capture and
playback buffers. The common size (supported by all alsa drivers) at
8000 Hz is 512 bytes (32ms).
Simon
Le ven 21/03/2003 à 15:22, Rolando Martins a écrit :
> Hi,
> What kind of latency is expected using 8,16,32 khz?
> I am trying to do a realtime stream server, and I am having latency above
> >500ms ( I capture the sound using the mic, encode it and send it to the
> client).
> I am using ALSA system, a SB128 PCI and a 800Mhz P3 . What can I do to lower
> the latency?
>
> I tried a test : arecord -t raw | speexenc - - | speexdec - and I found that
> I also have a 500 ms latency.
>
>
> --- >8 ----
> List archives: http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
> containing only the word 'unsubscribe' in the body. No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
--
Simon Morlat <simon.morlat at linphone.org>
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Speex-dev
mailing list