[Speex-dev] Sampling Rate

khaynes at kirkgames.com khaynes at kirkgames.com
Mon Dec 11 12:08:55 PST 2006


I'm attempting to use speex for voice chat in my game.

I'm capturing audio from the mic using OpenAL 1.1 in 16 bit mono. What sample rate is recommended for capturing from the mic? Which would be better: 11025 samples per second, or 22050 samples per second of 16 bit mono audio with respect to then encoding/decoding it with speex? I'm using 11025 to reduce bandwidth at the moment to capture.

Given your answer to the above question, what is the most efficient frame size for encoding the samples to speex frames? The sample code uses 160 samples (320 bytes) of 16 bit audio samples, which are then encoded to 200 bytes of encoded data. Is a 30% reduction in data pretty standard? How do I use speex most efficiently?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20061211/a248f88e/attachment.htm

More information about the Speex-dev mailing list