If echo in AI glasses gets harder to cancel over time, put playback and microphone capture on the same timeline. Determine whether their clocks run at different rates or a queue occasionally steps.
Use synthetic audio on a low-volume acoustic bench, not real calls. Loudspeaker sound reaches the microphone through air and the device structure. Acoustic echo cancellation (AEC) uses a playback-related reference to estimate the removable signal. Handling a fixed delay does not imply handling arbitrary changes in alignment. Both software settings may say 48 kHz while the hardware uses different timebases.
Reference placement can make buffering look like crystal drift
Locate the playback tap: before queueing, after digital processing or at samples actually handed to the output. Gain changes, resampling or wireless transport after that point can make it differ from what reaches the speaker. For capture, distinguish converter sample time from software buffer receipt. Subtracting two callback times does not measure acoustic propagation.
A stable offset can come from physical path or processing delay and may be aligned under the interface and algorithm requirements. A steadily growing offset at one operating mode can come from independent sample clocks or accumulating queue time. A sudden step followed by the old slope points toward dropped buffers, resets or sample-index remapping. Label these separately even when reported in the same units.
Worked example: why record half a millisecond over ten seconds?
Assume both rates are nominally 48,000 samples per second. Playback runs +30 ppm and capture −20 ppm over one external timing window, without resampling or sample insertion or loss. Playback averages 48,001.44 samples per second and capture 47,999.04, so their count difference grows by 2.4 samples per second. Actual counts are integers; averages can be fractional.
After 10 seconds the difference is about 24 samples, or 0.5 ms. After 60 seconds it is 144 samples, or 3 ms. One initial alignment allows the gap to grow until correction, insertion or removal, or another buffering effect. Whether echo is audible depends on the acoustic path and algorithm window and adaptation. The example does not establish that outcome.
A constant 96-sample offset looks more like a fixed 2 ms path difference. If physical sample counts stay aligned but the reference jumps by 144 samples after changing volume or call mode, inspect tap placement, buffers and interface resets first. The same number can have a different cause.
An oscillator is an upstream candidate, not an AEC setting
For a custom audio path needing a master clock around 24.576 MHz, Kyocera KC2016K24.5760C10E00 is a candidate. The clock is mathematically 512 times 48 kHz, but that conversion applies only if the actual clock chain uses the ratio. Frequency alone does not prove direct host compatibility, output levels or correct audio configuration. It is not a known commercial glasses BOM.
If both paths can use one shared reference, verify that both actually select it. If two devices cannot share a source, evaluate controlled asynchronous sample-rate conversion or runtime compensation on the same acoustic path. A more accurate crystal may reduce drift but cannot fix a fixed buffer delay, wrong tap or dropped-sample step. Obtain full ordering code, format, supply and actual board load instead of specifying only “audio oscillator.”
Collect a long alignment record, not just a short demo
Fix low volume, fixture position and processing mode and use clearly marked synthetic audio. Log playback-reference and capture indices and hardware timestamps where available. If no common hardware timebase exists, compare a common marker and document the limitation rather than subtracting uncalibrated software clocks. Identify whether the playback tap is before the queue, after processing or at transmission.
Keep hardware unchanged and vary only supported buffering or one approved path. Find whether offset grows steadily or steps at publication, transport or state transitions. Compare actual sample counts over each window and check zero padding, loss and repetition. When comparing shared and independent references, keep raw data and use counts, not listening impressions alone.
Check startup reference readiness and whether the tap remains correct after changing audio outputs. A changed physical path may need a new fixed-delay estimate. A short stable demo can miss slow drift, while an average can hide transient steps. Record initial offset, slope and jumps separately.
| Check | Engineering record | Purchasing or quality check |
|---|---|---|
| Playback and capture source | Actual clock ownership, rates and sample points | Full code, requirements and assembly |
| Reference path | Tap, buffers and output transitions | Board, firmware and audio settings |
| Offset trend | Initial offset, window counts, steps and missing blocks | Do not substitute listening for measurements |
| Substitution release | Startup, frequency and long alignment under identical settings | Exact codes, lots and validated modes |
Record left and right channels separately. Counting both scalar samples as frames can double the apparent rate. State whether counts are per channel, summed or buffer counts. A block of 480 single-channel samples nominally lasts 10 ms; another path delivering it in two blocks does not run twice as fast. Reconstruct sample counts before comparing rates against external time.
Clipped capture or a mode-dependent speaker gain can also worsen echo. Preserve playback, reference and microphone waveforms to distinguish dynamics from timebase error. Do not reject an oscillator based on audible echo alone.
Frequently asked questions
Can adding a few milliseconds of fixed reference delay fix the problem? It may help a verified fixed mismatch. It cannot keep up with accumulated drift or steps. Separate them over a long window first.
Why count samples if both devices say 48 kHz? Nominal settings do not measure actual rate. Count both paths over one external interval and distinguish raw samples from software insertion or loss.
