中文 English Deutsch Français
FlyAec› Blog› Video bars and USB audio
ENGINEERING · AEC

AEC for Video Bars and USB Audio Devices

A USB conference bar and its host run on different clocks. Keeping the far-end reference aligned with the echo is the whole game.

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

A video conferencing bar or USB speakerphone connects to a host computer over USB audio. The host renders the far-end call audio and the device captures the room. The two sides run on independent clocks, and that independence is the central AEC headache.

This article covers the clock and reference-signal issues specific to USB audio. The echo cancellation math is unchanged from other devices; the problem is keeping the far-end reference aligned with what the speaker actually played when the clocks disagree.

Two clocks, one echo path

The host's audio clock and the device's capture clock are not the same oscillator. Even a tiny parts-per-million difference accumulates: over a call the far-end reference the host timestamps drifts relative to the microphone capture on the device. The echo the canceller learned slowly de-aligns, the tail position creeps, and ERLE falls until the filter re-converges.

This is the same clock-skew class of issue seen on SIP and industrial networked intercoms, only the boundary is the USB link.

The drift also has a direction: if the host clock runs slightly fast, the device receives samples faster than it captures them, so its input buffer fills; if slow, it empties. The resampler must move both ways, not just speed up. A design that only ever stretches the host audio will eventually run out of buffer and either glitch or, worse, silently drop the reference alignment and let echo through.

Asynchronous USB audio

USB audio uses an asynchronous mode where the device is the clock master and the host feeds it at a rate the device requests via feedback endpoint. Done correctly, the host resamples its output to the device clock, so the far-end reference the device receives is already in the capture time base. The AEC then sees an aligned reference.

When the feedback endpoint is ignored or emulated poorly, the host keeps its own rate and the device must resample on its side, adding latency and a small quality cost. The reference must be taken after this resampling to stay aligned.

Sample-rate conversion as the fix

The practical remedy is sample-rate conversion at the boundary: convert the host's far-end stream into the device capture clock domain before it feeds the canceller. The conversion must be glitch-free and low-latency, because any discontinuity shows up as a pop the canceller cannot model and as a transient echo.

A floating-point or high-quality integer resampler with a stable ratio is preferred over a crude drop/duplicate scheme that injects periodic clicks.

The resampler ratio is rarely an exact integer, and it drifts as the two clocks age with temperature. A good implementation tracks the measured ratio continuously and updates it slowly, so the reference stays locked to the capture clock across a long meeting without audible pitch change.

Where to tap the reference

Take the far-end reference after it has entered the device clock domain and after any mix with local tones, never from the host's raw USB packets. A reference taken before resampling carries the host clock's drift and will not match the captured echo. Our far-end reference article stresses this tap-point rule in general.

For bars that also play local UI sounds, include those in the reference only if they are rendered through the same speaker path the mic hears.

One subtlety: some hosts apply their own AGC or ducking to the far-end before sending it. If the reference is tapped after that processing, the canceller models the ducked signal and the echo of the un-ducked original leaks. Tap the reference at the point that matches what the speaker actually renders. A common integration mistake is to tap the reference from the host's mixed output rather than the bar's own render path. If the bar mixes local UI sound into what the speaker plays but not into the reference, that UI sound becomes unexplained echo. Keep the reference and the speaker signal from the same point in the signal graph.

Verification across the USB link

Test with a real host and a real USB clock mismatch, not a loopback on the device, because the mismatch is what breaks alignment. Let the call run long enough for drift to accumulate, measure ERLE trend over time, and confirm it recovers. Our measurement guide covers isolating clock from acoustic effects.

The tap-point rule that keeps the USB reference aligned is the general principle in Why AEC Needs a Far-End Reference, and the same clock-skew pattern appears on SIP intercoms.

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 USB audio cause AEC problems?

The host render clock and device capture clock are independent; their drift de-aligns the far-end reference from the captured echo, creeping the learned tail.

What is asynchronous USB audio?

The device is clock master and tells the host its rate via a feedback endpoint, so the host resamples its output into the device time base and the reference stays aligned.

How is clock drift fixed?

Sample-rate conversion at the boundary resamples the host far-end stream into the device capture clock before the canceller, glitch-free and low-latency.

Where should the reference be tapped?

After it enters the device clock domain and after any local mix, never from raw host packets, or drift remains.

How do you test the drift?

Run a real host with a real clock mismatch for long enough to accumulate drift, then watch ERLE recover over time.