[Speex-dev] AEC diagnistics generated files

Eddy Chan eddyc98 at yahoo.com
Wed Dec 5 21:13:36 PST 2007

Hi Dmitry,

I met the same problem a few months ago and at that time I used 1.2beta2 code/library downloaded from Speex homepage. That bug has been fixed in the most updated source code in svn.


----- Original Message ----
From: Dmitry Nikitin <dmitry.nikitin at advatel.com.au>
To: speex-dev at xiph.org
Sent: Wednesday, December 5, 2007 12:31:57 PM
Subject: [Speex-dev] AEC diagnistics generated files

Sorry for not being accurate in the original question.

My testing environment is set to 20ms frames (PCM 16 8 1 to be

I have verified that all the frames that I feed to the AEC have the
fixed size of 320 bytes.

So this is why I am presuming that the the dumped files should be of
equal size.

The output signal is good and not distorted. It has echo, though.

In a try to diagnose that I have followed the documentation and set the
DUMP_ECHO_CANCEL_DATA compiler variable.

The canceller generated aec_out.sw, aec_play.sw and aec_rec.sw and they
all appear to have uneven size.

Octave complains about the files which is logical as it's trying to
multiply matrixes that have different dimensions.

I have checked that tear-downs are made correctly and
speex_echo_state_destroy() is called after the threads are stopped.

Any clues, guys?


-----Original Message-----
From: Dmitry Nikitin 
Sent: Wednesday, December 05, 2007 9:50 AM
To: 'speex-dev at xiph.org'
Subject: [Speex-dev] AEC diagnistics generated files

Hi Guys,

I am trying to incorporate the speex AEC into my RTP stack.

Trying to diagnose why the echo is not being cancelled I enabled
DUMP_ECHO_CANCEL_DATA as per the docs.

The problem is that the dump files the AEC generates are of different

As I understand this and looking at echo_diagnostic.m, the files are
supposed to be of same size.

Can someone give me a hint as to why this could be happening?

Additional info:

Windows WaveIn/Out API is used to work with a sound device.
The format is PCM 16 8 2

Thanks much,
Speex-dev mailing list
Speex-dev at xiph.org

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

More information about the Speex-dev mailing list