中文EnglishDeutschFrançais
FlyAec› Blog› Why AEC needs a reference
Echo cancellation · Engineering

Why AEC Needs a Far-End Reference Signal

"Can you remove the echo with just the mic recording?" Honestly, no — not as true echo cancellation. Here is why, and what to do when a reference genuinely isn't available.

By QingYin Audio Lab · October 30, 2026 · 9 min read

"Can you remove the echo if we only give you the microphone recording?" It is a common question, and the honest answer is no — not as true echo cancellation. Understanding why saves a lot of wasted integration effort, and points to the right tool when a reference signal genuinely is not available.

What echo cancellation actually computes

Acoustic echo is your own loudspeaker's sound, played into the room and picked up again by your own microphone. To remove it, the canceller needs to know exactly what the loudspeaker is playing — the far-end reference signal. It uses that reference to model the echo path (how the speaker's sound is transformed on its way to the mic) and subtracts the predicted echo from the microphone signal.

This is a system identification problem: the reference is the known input, the mic signal is the observed output, and the algorithm estimates the path between them. Without the known input, there is nothing to correlate against.

mic signal y(n) = echo( far-end x(n) through path h ) + near-end speech + noise
AEC needs x(n) to estimate h and subtract the echo term.

Why a single mic recording is not enough

Given only y(n), the far-end echo and the near-end voice are mixed together and often sound similar — both are speech. There is no reliable way to decide which parts of the mixture are "the sound we played" and which are "the person in front of the device". Any blind separation would be guessing, and guessing either leaves echo in or removes the talker's voice.

Common misconception: "we'll just run a noise suppressor and it will clean up the echo too." It will not. Noise suppression targets ambient, environmental sound. Echo is a structured copy of your own playback, and removing it requires the reference. A suppressor may make the echo less obvious, but it cannot cancel the loop.

Where the reference signal comes from — and the traps

Most voice products already have the far-end signal in the pipeline: it is the audio you are about to send to the loudspeaker. Delivering a copy to the AEC is usually an integration task, not a hardware change. The traps are practical:

When you truly have no reference, use noise suppression instead

Some products legitimately have only a microphone capture and no loudspeaker playback to reference: a standalone recorder, a one-way capture device, a mic feed from a remote source you do not control. In those cases, echo cancellation is off the table — but noise suppression is exactly the right tool for cleaning environmental sound from a single stream.

That is the job of FlyDenoise: a frame-online noise-suppression engine that works from the mic signal alone, at 25.1 MMAC/s, under 100 KB RAM and under 90 KB Flash in plain C, running on Cortex-M0-class parts. Its GTCRN-based design targets non-stationary noise — horns, wind, machine impacts — without needing any reference channel.

Your situationRight toolWhy
Speaker plays far-end audio the mic can hear; reference availableAEC (FlyAec)Reference lets the engine model and subtract the echo loop
No speaker playback, or no access to the referenceNoise suppression (FlyDenoise)Only a single stream is available; clean ambient noise from it
Both echo and ambient noise presentJoint AEC + NS (FlyAec)One engine handles both without cascading artifacts

Hear what "removing the loop" means

Here the far-end reference is available, so the engine can remove the returning echo. Compare the far-end signal, the mic capture (echo included) and the processed output:

Real call — echo removed using the reference

Far-end signal
Local mic
Processed

A quick integration checklist

  1. Confirm the reference exists and tap it before speaker post-processing.
  2. Align it in time with the mic path; measure and compensate buffering and clock differences.
  3. Verify loudspeaker linearity at the volumes you will actually ship; plan for a residual echo suppressor.
  4. Test echo-path changes (movement, doors) and re-convergence.
  5. If there is no reference, stop trying to do AEC — use FlyDenoise and set expectations accordingly.

Bringing it together

AEC is not a generic "clean up the audio" filter; it is a reference-driven subtraction of your own loudspeaker's signal. That reference is the price of admission. If you have it, a joint AEC + suppression engine like FlyAec removes echo and noise together. If you do not, reach for a single-stream noise suppressor like FlyDenoise — and avoid the frustration of trying to cancel a signal you never captured.

Not sure which engine you need?

Tell us your signal chain. If you have a far-end reference, we will help with FlyAec; if you only have a mic feed, look at FlyDenoise.

Explore FlyDenoise Ask about your setup
FAQ

Common questions

Why does acoustic echo cancellation need a far-end reference?

Echo is your own loudspeaker's sound returning through the mic. To cancel it, the engine must know exactly what the speaker is playing, model the echo path, and subtract the predicted echo. This is a system-identification problem: no reference means no known input to correlate against.

Can't a noise suppressor remove the echo too?

No. Noise suppression targets ambient environmental sound. Echo is a structured copy of your own playback, and removing it requires the reference. A suppressor may soften it but cannot break the loop.

Where do I get the reference signal?

It is usually the audio you are about to send to the loudspeaker. Tap it before any post-processing (volume, EQ, compression) that changes the actual acoustic playback, and align it in time with the mic path, compensating for buffer delays and clock drift.

What if my product truly has no reference?

Then use a single-stream noise suppressor instead — for example FlyDenoise, which works from the mic signal alone at 25.1 MMAC/s in plain C on Cortex-M0-class parts.

What is residual echo suppression?

A loudspeaker driven hard distorts, so the echo is not a perfectly linear transform of the reference. A residual echo suppressor cleans up what the linear model cannot, handling non-linear playback artifacts.