The interview problem

Practice prompt

A voice assistant interrupts users during pauses yet feels slow after short commands. Design endpointing that decides when to respond, rather than merely whether speech is present.

Original practice, not a reported company interview. All worked numbers are illustrative. Interview date: not applicable. Written October 3, 2026.

1. Scope and assumptions

Voice activity detection identifies acoustic speech regions; turn completion may require linguistic and conversational context. Assume a streaming recognizer with revisable partial transcripts. Define separate behavior for commands and open-ended dictation.

2. Architecture and decisions

Audio features and partial text → turn-state estimator → silence/context policy → endpoint commit → response

Combine acoustic silence, prosody and stable transcript context into a turn-completion score. Use a minimum silence floor and a bounded maximum wait, tuned by interaction type. An unfinished phrase such as “send it to…” should require more evidence than a complete short command. Keep speculative response preparation separate from playing audio or executing a tool.

Track provisional and committed endpoints. If speech resumes before commitment, extend the turn; after commitment, treat it as an interruption or correction under an explicit policy. Do not mistake an ASR segment boundary for user intent. Keep a fallback silence rule for unavailable model features and expose accessibility settings for slower speakers.

3. Work through the example

In 1,000 labeled turns, a policy prematurely ends 30 and has median post-speech wait of 450 ms. Another prematurely ends 10 with 700 ms median wait. The premature rates are 3% and 1%; the extra 250 ms buys fewer interruptions. Choose using task success and user cost, not latency alone.

4. Failure cases and trade-offs

Background speech can prevent endpointing indefinitely. Hesitations, accents and code-switching shift error rates. A partial transcript can change from apparently complete to incomplete. A single global threshold is simple but may systematically disadvantage some speaking styles; adaptive policies require careful evaluation and bounded behavior.

5. Validation and acceptance

Use human-labeled turn boundaries with natural pauses and interruptions. Measure premature commitment, excessive wait and downstream correction rate by speaking condition. Test silence, noise-only input and recognizer failure. Assess percentile latency as well as the median.

6. Follow-ups and self-review

How would an endpoint change when the assistant is about to perform an irreversible action? Reward the VAD/turn distinction, stable evidence, bounded waits and consequence-sensitive commitment.

Sources and related practice

Amazon Transcribe documents revisable partial results and stabilization; the endpoint classifier and product policy here are original.

Read the primary technical reference

Reference retrieved October 3, 2026. Retrieval date is not an interview or source publication date. The reference supports the named concept; scenario, architecture, examples and rubric are original.

Continue with Design a real-time voice assistant; Design a live meeting transcription system.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.