Thanks Jean-Mark for the answers.<br><br>I thought about that and I delayed the mic by 50 samples.<br>In this way I get a few update_foreground = 1, but there are not audible differences.<br>Plotting the st->e array, you can see that it is almost null everywhere or with very low values.<br>
<br>What it seems weird to me is that if you listen the files they are very similar, so, I think, there should be a way to cancel the echo.<br><br>Marco<br><br><br><div class="gmail_quote">2009/12/30 Jean-Marc Valin <span dir="ltr"><<a href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Maybe you shifted the signal too much. If the mic signal is just one<br>
single sample *ahead* of the playback signal, then there's no<br>
cancellation possible (because the system is not causal). Be careful<br>
with that. Otherwise, if could simply be dropped frames.<br>
<br>
Jean-Marc<br>
<div><div></div><div class="h5"><br>
On 2009-12-30 07:06, Marco Pierleoni wrote:<br>
> The problem is that now I have two files very similar (one for mic, the<br>
> other for speaker).<br>
> If I play them together I can hardly say that they are two different<br>
> file for most of the file length.<br>
><br>
> When I try to cancel the echo, I obtain as output almost the same input.<br>
> The update_foreground variable is always 0. I don't get the conditions<br>
> which must be fulfilled in order to have update_foreground=1.<br>
> I see that there is some energy comparison, but I don't get the physical<br>
> meaning of all the components.<br>
> Is it normal to get always 0?<br>
> If the track are into alignment, are there other tracks' properties to<br>
> consider in order to get a good echo cancellation? Maybe the audio<br>
> quality? or the relative volume?<br>
><br>
> Thanks for any help.<br>
><br>
> Marco Pierleoni.<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Speex-dev mailing list<br>
> <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
> <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
_______________________________________________<br>
Speex-dev mailing list<br>
<a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
</blockquote></div><br>