Model and Inference EngineeringMultimodal evidence and voiceStaff
How would you locate caller speech lost between microphone capture and recognition during barge-in?
By Amit Kumar2 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A caller interrupts while the agent speaks. Raw audio contains the caller, but recognition appears to receive silence. Trace playback reference, raw microphone, echo-cancelled signal, activity gating and recognition input. Compare suppression, gating and transport faults and evaluate real overlapping speech rather than echo-only performance.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Start with the audio path. The microphone picks up the caller plus the agent's voice coming out of the speaker. Acoustic echo cancellation (AEC) uses a playback reference to remove that speaker contribution before voice activity detection and automatic speech recognition (ASR). During an interruption, near-end speech and playback overlap. An echo suppressor that treats the caller's speech as echo can remove exactly the signal we need. A voice activity detector (VAD) that closes its gate while text-to-speech (TTS) is playing can create the same symptom without an AEC failure. Research on mobile full-duplex echo cancellation treats VAD and ASR downstream of echo cancellation and calls out hardware and reference-delay problems.
Record a consented diagnostic trace at four points with aligned timestamps: speaker reference, raw microphone, post-AEC microphone and the frames passed to ASR. If the caller is present in raw mic but missing after AEC, inspect playback-reference timing, echo-path changes, double-talk handling and suppressor strength. If the post-AEC signal has speech but ASR receives zeros or no frames, the gate or streaming transport is suspect. If ASR sees speech but no transcript, check language, chunking and recognition thresholds. Replay a set with caller speech at different playback levels, devices, rooms and interruption times. Do not tune an ASR model to repair frames it never received.
The real product decision is when to pause TTS. Detect an interruption using the earliest reliable near-end evidence, briefly duck or stop playback, and continue listening while the agent is speaking. That can improve the acoustic conditions, but a false trigger can cut the agent off. Measure missed barge-ins, false interruptions, detection delay and word error on overlapping speech. Also test what the user hears and whether a partially spoken assistant sentence is carried into the dialogue state. A beautiful AEC score on echo-only audio is weak evidence if users cannot interrupt the agent.
Related questions
Keep practising model and inference engineering
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux