Real-Time Multi-Channel Signal Flow
Far-End x[n] ("Hello")
Near-End Mic d[n] (Echo)
Estimated Echo ŷ[n]
Clean Output e[n]
Adaptive Filter Weights w[k] vs True RIR
CONVERGED (98.4%)
Jitter Buffer Arrival & Depletion Spectrum
LOSS: 0 PKTS
How "Hello?" Echo Cancellation Works
When you speak "Hello?" into a speakerphone, the sound travels through the far-end speaker, bounces off room walls (Room Impulse Response, RIR), and leaks directly into the near-end microphone. Without Acoustic Echo Cancellation (AEC), your own delayed voice bounces straight back to you.
The Normalized Least Mean Squares (NLMS) filter continuously models the room acoustic path h[n] by calculating weight vector updates: w(n+1) = w(n) + μ · e(n) · x(n) / (||x(n)||^2 + δ). If the near-end speaker also speaks at the exact same moment (Double-Talk), the Double-Talk Detector (DTD) temporarily freezes weight updates to prevent the filter from diverging.