[Speex-dev] High CPU usage

Tanmay Ambre ambre.tanmay at gmail.com
Wed Jun 13 03:01:52 PDT 2012

Mark Schilling <mark_schilling <at> gmx.de> writes:

> Hi Jozsef,
> this approach sounds interesting.
> Do have you have some source code available ?
> Thanks
> Mark
> -----Original Message-----
> From: speex-dev-bounces <at> xiph.org [mailto:speex-dev-bounces <at> xiph.org] 
On Behalf Of Jozsef Vass
> Sent: Friday, September 25, 2009 11:43 PM
> To: mark_schilling <at> gmx.de
> Cc: speex-dev <at> xiph.org
> Subject: Re: [Speex-dev] High CPU usage
> I have run into the same issue. Before sending a frame to encoder, I calculate 
the energy. If it is less than a
> small threshold, I simply replace this frame with "silence frame," which is 
320 random samples of values
> smaller than 3 (16 kHz).
> BTW, I have only experience this problem with certain USB headsets that 
provide you all 0 samples when muted.
> Jozsef
> _______________________________________________
> Speex-dev mailing list
> Speex-dev <at> xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev


I am having a similar problem. Definitely when some head phones are muted I get

high CPU usage. Also it seems on some older machines using Pentium 4 the CPU 
usage is very high. 

Does compiling speex API with DISABLE_FLOAT_API and DISABLE_VBR solve the 


More information about the Speex-dev mailing list