中文EnglishDeutschFrançais
FlyAec› Blog› WebRTC AEC3 vs deep-learning AEC
Echo cancellation · Comparison

WebRTC AEC3 vs Deep-Learning AEC: What Actually Changes

AEC3 is the right answer in a browser. Here is what breaks when you transplant it to a door station — and what a learned joint engine does differently.

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

Search for echo cancellation and you will find WebRTC's AEC3 first — and for good reason. It runs in Chrome, Edge and every app built on the WebRTC library, it has been tuned across an enormous volume of real calls, and it is free. If you are building a browser-based communicator, stop reading and use it.

But AEC3 is regularly proposed for products it was never designed for: door stations, intercoms, embedded speakerphones, firmware on microcontrollers. This article explains what AEC3 actually is, what it is genuinely good at, and what changes — practically, not ideologically — when you replace it with a deep-learning engine sized for embedded hardware.

What WebRTC AEC3 is

AEC3 is the echo canceller inside WebRTC's Audio Processing Module (APM). Around 2017–2018 it replaced the original desktop canceller and the lightweight mobile variant (AECM) as the default. APM processes in a fixed order — echo cancellation, then noise suppression, then gain control — and the IETF profile for WebRTC audio (RFC 7874) recommends implementations apply AEC, which is why browsers have it on by default.

Internally it is a five-stage pipeline:

  1. Delay estimation — continuously matching the reference against the mic to find the echo delay, which on phones can range from roughly 20 to 200 ms and drift during a call.
  2. Linear adaptive filtering — frequency-domain block processing (64-sample blocks, about 4 ms each) modelling the acoustic path; a well-converged linear filter typically removes on the order of 20–40 dB of echo.
  3. Double-talk detection — freezing or slowing adaptation while the near-end speaks so the filter does not learn your voice.
  4. Residual echo suppression — a non-linear safety net for what the linear model misses, such as loudspeaker distortion.
  5. Comfort noise — filling suppressed silences so the call does not sound like it keeps dropping.

The fair summary: AEC3 is an excellent, battle-tested canceller designed for real-time communication on desktop and mobile operating systems, with generous compute and an OS audio stack that supplies the loopback reference. Most of its engineering budget goes to problems — jittery playback buffers, drifting hardware delay, arbitrary unknown rooms — that matter enormously in a browser call.

Why it does not transplant to embedded hardware

None of that makes AEC3 "bad". It makes it a poor fit for a Cortex-M door station, for reasons that are structural rather than tuning issues:

What a deep-learning engine changes

A learned joint AEC+NS engine approaches the same subtraction problem differently, and the differences are concrete:

Listen: double-talk through a real far-end call

The clip below is a full-duplex call where both sides speak simultaneously. The mic take contains the far-end echo plus the near-end voice; the enhanced take is the engine output. Judge it on one question only: is the near-end voice intact while the echo is gone?

Full-duplex call — double-talk with echo

Far-end
Mic (echo + voice)
After FlyAec

How to choose, honestly

Your productSensible defaultWhy
Browser-based communicator, web meeting appWebRTC AEC3Designed for exactly this; free; maintained by the platform itself.
Mobile app with in-app audio stackWebRTC APM / AEC3OS supplies loopback reference; compute is available.
Intercom, door station, speakerphone on MCUEmbedded deep-learning engineNo OS audio stack; tight RAM/compute; fixed acoustic path favours a learned model.
Hybrid: embedded endpoint + web consoleBoth, per endpointUse each where its assumptions hold.

One caveat we insist on: measure on your hardware with your acoustic path. ERLE on a dev board tells you little about your sealed door-station enclosure.

Where we verify claims

We hold ourselves to the standard we ask of others: on the official ICASSP 2023 AEC challenge blind test set (800 files), FlyAec was evaluated against published baselines and achieved the highest average of the four subjective MOS categories — a comparison on a public test set, not a challenge victory, and we describe it exactly that way. The full table and methodology are on our benchmark page.

Evaluate on your enclosure, not our datasheet

Send us a recording from your intercom or door station, or try the online A/B demo with real far-end reference calls. We provide a written evaluation report including the exact test configuration.

Listen to the A/B demo Request an evaluation
FAQ

Common questions

Is WebRTC AEC3 good enough?

For browser and mobile-app real-time communication, yes — it is the default in Chrome and Edge and is battle-tested. It is a poor fit only where its assumptions break: bare-metal embedded devices with no OS audio stack and tight compute budgets.

Why can't I just compile AEC3 for my MCU?

Technically parts of it compile, but AEC3's delay estimation, multi-block filtering and suppression machinery assume desktop-class headroom, and it expects the OS to supply a loopback reference. On a Cortex-M door station neither the compute/memory budget nor the reference plumbing exists.

What does a deep-learning AEC do better?

It models non-linear loudspeaker distortion instead of patching it with a residual suppressor, handles noise suppression jointly in one pass, and is trained for double-talk rather than relying on freeze/gate behaviour. FlyAec ships this in a 1.1 MB plain-C model for embedded CPUs.

Is FlyAec better than WebRTC AEC3?

Different tools for different environments. We do not run AEC3 on our target hardware, so we make no head-to-head claim; what we publish is FlyAec's result on the official ICASSP 2023 blind test set (800 files) against published baselines — the highest average of the four subjective MOS categories.

Where do I get the far-end reference signal on embedded hardware?

Tap the far-end audio digitally before it reaches the power amplifier — after decoding, before any mixing with local sounds. Wiring mistakes here are the most common cause of bad AEC in production; we describe the tap points in a dedicated article.