Model and Inference EngineeringMultimodal evidence and voicePrincipal
Why must a voice-activity timeout be separate from authorization for a money transfer?
By Amit Kumar2 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A caller says approve the transfer, pauses, then says no, wait. A silence timeout ends the first segment and the agent starts the money workflow. Every transcribed word was accurate. Explain what failed, trace the correction against action state, and design a confirmation boundary that avoids waiting until the entire call ends.
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
Turn segmentation is part of the decision, not just a speech-processing detail. A voice activity detector (VAD) detects speech and silence, not the end of a person's intent. Google Cloud's voice activity documentation describes activity events and configurable timeouts. The hypothetical system chose to interpret a timeout as authorization. That is an application error, even if speech recognition accurately transcribed every audio chunk it received.
I would separate partial transcripts, final segments, end-of-turn inference and authorization to act. Keep the audio and timestamps around the cutoff, including the words after it. Inspect whether a new speech segment arrived while the action was still pending, whether the agent was allowed to interrupt or cancel, and whether the external transfer had actually committed. Measure the distribution of pause lengths for this task, including people who self-correct. A longer timeout reduces early commits but adds response latency. The right answer depends on the cost of waiting versus the cost of a false action.
For an irreversible or expensive action, a VAD timeout should never be sufficient consent. The agent can summarize the intent and ask for an explicit confirmation that names the payee and amount, then bind that confirmation to an action preview with a version or expiry. If the user says “no, wait” while approval is pending, cancel the pending attempt and state whether any external effect already happened. A spoken “yes” still needs an identity and policy check appropriate to the operation. UI and voice flows may use different confirmation friction, but the action boundary must be clear.
Waiting until the entire call ends would avoid this early commitment, but prevent a useful turn-by-turn conversation. Use streaming for conversation, but treat high-impact tool calls differently. The transcript changes ‘do’ to ‘don't’ after the assistant starts speaking. What was committed? covers partial ASR hypotheses being mistaken for stable text. Here the first words really were spoken and accurately recognized. The missing information is the continuation and correction after a pause, which changes the user's intended command.
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