Skip to content
On The Agentic List 2026Learn more

Glossary

Acoustic Echo Cancellation (AEC)

Acoustic echo cancellation removes a device's own playback from its microphone signal, so voice AI hears callers clearly and handles interruptions reliably.

Updated November 30, 2026

What Is Acoustic Echo Cancellation (AEC)?

Acoustic echo cancellation (AEC) is a signal-processing technique that removes the sound of a device's own playback from its microphone signal. When audio comes out of a loudspeaker, some of it travels back into the microphone, directly or by bouncing off walls. Without AEC, the person on the other end hears their own voice a moment later, and a voice system hears itself talking.

For voice AI, AEC is less about comfort and more about correctness. An AI agent that cannot separate its own voice from the caller's may treat its own speech as an interruption, transcribe its own words as the customer's, or miss the moment a caller starts talking.

Acoustic Echo vs. Line Echo

Two kinds of echo show up on calls, and they are handled in different places:

  • Acoustic echo: Created at the endpoint, when a loudspeaker's output leaks into a microphone. Speakerphones, car hands-free systems, laptops and smart speakers are common sources. It is cancelled on the device or in client software, such as a softphone or a browser using WebRTC.
  • Line (network) echo: Created inside the telephone network, typically at hybrid circuits that convert between 2-wire and 4-wire lines on the PSTN. It is handled by network echo cancellers in carrier and gateway equipment, which ITU-T G.168 specifies.

Echo becomes more noticeable as delay grows. A VoIP path with buffering for jitter and transcoding can turn a faint, near-instant echo into a distinct and distracting repeat.

How Acoustic Echo Cancellation Works

An echo canceller knows exactly what signal it sent to the loudspeaker, called the far-end or reference signal. Its job is to predict how that signal will sound after it passes through the speaker, the room and the microphone, and then subtract the prediction.

  1. Adaptive filtering: An adaptive filter models the echo path, essentially the room's acoustic response, and keeps updating that model as people move or the device changes position.
  2. Subtraction: The predicted echo is subtracted from the microphone signal, leaving the near-end talker's voice plus some residual echo.
  3. Double-talk detection: When both sides speak at once, the filter must pause its adaptation so it does not learn the near-end voice as echo. Detecting this double-talk is one of the hardest parts of AEC.
  4. Residual echo suppression: A non-linear stage removes leftover echo the linear filter cannot model, such as distortion from a small speaker.
  5. Noise suppression and comfort noise: Many pipelines then suppress background noise and, where needed, add comfort noise so the line does not sound dead.

Modern implementations increasingly use neural networks for residual suppression, which handle non-linear distortion better than classic filters. The trade-off stays the same: aggressive suppression removes echo but can clip the start of the near-end talker's words.

Why AEC Matters for Voice AI

AEC is a prerequisite for natural barge-in. If a caller on speakerphone interrupts, the AI must detect the caller's voice while its own voice is still playing. Poor echo cancellation produces two failure modes:

  • False barge-in: The agent hears its own echo, decides the caller is speaking, and stops mid-sentence for no reason.
  • Missed barge-in: Suppression is so aggressive that the caller's first words are removed, so the agent keeps talking over them.

Echo also degrades voice activity detection (VAD) and speech-to-text accuracy. A voice AI platform on the server side cannot cancel acoustic echo that the caller's device failed to remove. It can still limit the damage by knowing exactly what audio it played, tuning interruption thresholds and treating speech that matches its own output with suspicion. Full-duplex voice AI, which listens and speaks at the same time, depends on clean separation even more than turn-based systems do.

AEC and Maven Voice

Maven Voice is built for full duplex conversation, so callers can interrupt, change their minds or circle back mid-sentence. Before taking customer calls it was tested in subways, airports and sports stadiums, and automated testing runs hundreds of scenarios in parallel before every release. Those are the conditions where echo, crosstalk and speakerphone audio show up. Read more in Full Duplex Voice AI Explained.

Frequently Asked Questions

Where does acoustic echo cancellation happen on a phone call?

At the endpoints that have a loudspeaker and a microphone: the phone, headset, softphone or browser. Line echo inside the network is handled separately, by echo cancellers in carrier and gateway equipment.

Why does the AI agent stop talking when nobody interrupted?

A common cause is echo. If the caller's device leaks the agent's voice back into its microphone, the agent may hear itself and treat it as an interruption. Testing on speakerphones and hands-free car systems exposes this quickly.

Is noise suppression the same as echo cancellation?

No. Noise suppression removes unwanted sounds the system did not produce, such as traffic or a fan. Echo cancellation removes a known signal: the system's own playback. Most voice pipelines run both, usually with echo cancellation first.

Does a headset remove the need for AEC?

It reduces acoustic echo a lot, because little sound leaks from the earpiece to the microphone. It does not remove line echo in the network. Many callers also use speakerphones or car systems, so AEC remains necessary.

See it on your own conversations.

Request a free personalized demo.

Book a demo