[Speex-dev] Visualizing echo

Thorvald Natvig speex at natvig.com
Fri Dec 2 22:47:02 PST 2005


Hi,

I've added visualization of the speex noise cancellation to my program.

I did this by taking st->noise[] and st->ps[], scale both by 
1.0/(st->ps_size * 32768.0) (to get a value between 0.0 and 1.0), and then 
draw them as a realtime lineplot. This works well, and my users like being 
able to see roughly what frequency bands they have noise in and compare 
it to their input signal. It also settled the long argument I had with a 
user of whether or not 44.1 khz sampling was needed for human speech... 
And most of all, it's cool ;)

Now, I'd like to do the same for echo cancellation, but there I'm a bit at 
a loss of what arrays to look at and what values I should expect. Ideally, 
I'd like something like 'amount of echo in frequency band x at time 
offset y'.. Any idea of what arrays I should look at?



More information about the Speex-dev mailing list