Bjoern D. Rasmussen
2004-Aug-06 15:01 UTC
[speex-dev] Real time audio encoding - cpu usage
Hello there I've developed a p2p voice application using Speex and I'm looking for ways to reduce Speex's cpu usage. My K6-2 300 MHz can't even encode 16 bit audio at 16KHz in realtime using Speex in narrowband mode. I've tried to lower the quality to 2 and complexity to 2 also but it's still way too slow. Which other ways are there to make encoding faster? Is there a 3DNow-port of Speex? Cheers Bear ICQ: 2745075 --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> I've developed a p2p voice application using Speex and I'm looking for ways > to reduce Speex's cpu usage. My K6-2 300 MHz can't even encode 16 bit audio > at 16KHz in realtime using Speex in narrowband mode. I've tried to lower the > quality to 2 and complexity to 2 also but it's still way too slow. > Which other ways are there to make encoding faster? Is there a 3DNow-port of > Speex?Well, first if you need to encode 16 kHz speech, you need to use wideband (narrowband is for 8 kHZ). At -w --quality 5 --comp 1 I can encode in real-time on my PIII 1 GHz with 5% CPU. I know that the K6-II x87 FPU is notoriously slow, but I didn't think it was *that* slow. The setting I gave you might help, otherwise a 3DNow!-port would probably make the code 2-3 times faster. If you want to do it, I can show you what functions (there are 2-3) to port. Otherwise I might do it eventually, but it's not a top priority (there's already an SSE version though). Jean-Marc -- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 242 bytes Desc: signature.asc Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20021202/00660fd9/signature.pgp