[Speex-dev] AEC diagnistics generated files

Dmitry Nikitin dmitry.nikitin at advatel.com.au
Tue Dec 4 20:31:57 PST 2007

Sorry for not being accurate in the original question.

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

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,

More information about the Speex-dev mailing list