中文 English Deutsch Français
FlyAec› Blog› Latency budget for full-duplex
ENGINEERING · AEC

AEC Latency Budget for Full-Duplex Voice

Full-duplex lives or dies on latency. This treats AEC as a line item in the end-to-end delay budget.

By QingYin Audio Lab · November 5, 2026 · 8 min read

Full-duplex voice means both sides can talk and be heard at once, with no clipping of the far end when the near end speaks. That capability lives or dies on latency: every stage in the path adds delay, and the acoustic echo canceller is one of those stages.

This article treats AEC as a line item in the end-to-end latency budget and shows which AEC choices cost delay and which buy it back. It is about timing, not noise reduction.

Where AEC sits in the chain

On the send path, the microphone signal flows through the canceller, then any post-filtering, then encoding and network transport, then decoding and rendering at the far end. The canceller's own processing delay is the frame it operates on plus any buffering. A larger frame reduces per-sample compute but adds one frame of delay.

The reference signal must be available to the canceller aligned to the captured audio; misalignment from clock or buffering shows up as echo, not just as latency.

The far-end listener also has their own budget: the echo they hear is your cancellation error delayed by your network and their render path. Even a perfectly cancelled near end does not help if the residual echo arrives late because your jitter buffer is too deep. The AEC budget and the transport budget are the same end-to-end delay, so a deep jitter buffer on your side is heard by them as echo even when your local metrics look clean.

Frame size is a latency tax

The canceller processes blocks of samples. A longer block lowers CPU load but delays the output by the block length, and also slows the effective response to a changing echo path. Smaller frames cut latency at higher compute cost. The choice is a direct budget trade, not a free parameter.

On embedded devices this is often the dominant AEC latency term, larger than the filter math itself.

There is also a buffering interaction: the microphone DMA, the reference DMA, and the codec often each add their own block delay. These are independent of the AEC frame but land in the same budget, so the AEC frame must be chosen knowing the fixed platform delays already consumed. Reducing the AEC frame cannot recover latency spent in hardware buffering.

Filter length and convergence time

As covered in the tail-length article, a longer filter needs more taps and converges more slowly after a path change. Slow convergence is not latency in the transport sense, but it delays the moment echo is actually removed, which the user experiences as a lingering echo right after they move.

So tail length and latency are linked: the budget that forbids a long tail also limits how much late reverberation the canceller can remove.

Double-talk update rate

During double-talk the filter update is frozen or slowed by the detector. A slow detector lets divergence begin before it reacts; a fast detector protects the filter but risks false freezes that stall convergence. The detector decision latency is part of the budget too, because a late freeze costs a few samples of divergence.

The detector methods article compares the speed and false-alarm trade-offs of Geigel, correlation, and two-path schemes.

Budgeting the whole path

Add up capture, AEC frame, post-filter, codec, network jitter, and far-end render delay; the acoustic echo must be cancelled within the time the far end can tolerate hearing its own voice returned. If the budget is tight, shrink the AEC frame and tail before touching the network, because those are usually the larger terms.

Measure end-to-end with a loopback and confirm that single-talk echo is gone within the budgeted window.

A useful discipline is to set a single latency ceiling for the product and allocate it backwards: reserve the parts the network and codec demand, then spend what remains on capture, AEC, and render. If the remainder cannot hold both a useful tail and a safe frame, the design must change the codec or the clock topology, not just the AEC. Finally, document the budget as a table per device, not as a single number, because different product tiers ship different codecs and clocks. A budget that holds for a flagship tier can silently break on a cost-reduced variant with a slower codec and a deeper jitter buffer.

The tail-length half of this budget is worked out in AEC Reverberation and Tail Length, and the detector decision latency is the subject of Double-Talk Detection Methods.

Hear it on your own audio

Upload a real call recording and compare the AEC output on our demo page.

Try the live demo Request an evaluation
FAQ

Common questions

Why does latency matter for AEC?

Every stage adds delay; if the canceller or path is too slow, the far end hears its own voice returned as echo, breaking full-duplex.

What is the AEC frame-size trade?

A longer processing block lowers CPU but adds one block of delay and slows response to path changes; smaller blocks cut latency at higher compute cost.

How does tail length relate to latency?

A longer filter converges more slowly after a path change, so the user hears lingering echo longer; the latency budget limits how long a tail you can afford.

Does the double-talk detector add latency?

Its decision delay does: a slow detector lets divergence start before reacting, while a fast one protects the filter at the cost of occasional false freezes.

How do you budget the whole path?

Sum capture, AEC frame, post-filter, codec, jitter, and render delay, then confirm echo is gone within the far end's tolerable window.