The interview problem

Practice prompt

Design an on-device detector that wakes a voice assistant without constantly activating on television audio.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Use streaming acoustic features, a small keyword model and a debounced trigger. Train with near-miss phrases and background conversations; split speakers and recording rooms across evaluation sets. Keep the microphone buffer local and discard it unless the user activates recording.

2. Trace the design or derivation

Audio frames
  → keyword score
  → temporal debounce
  → activation

Choose the threshold on held-out device recordings, then freeze it for testing. Include speech immediately after the wake phrase so that trigger latency does not silently clip the command. A larger server model cannot repair audio that was never buffered.

3. Calculate the example

In 200 device-hours, 10 false activations give 0.05 false activations/hour. Missing 8 of 400 deliberate wake phrases gives a 2% miss rate; these denominators measure different costs.

4. Failure cases and trade-offs

A clip-level balanced accuracy score hides long-duration false alarms. Thresholds vary with microphones and noise; indiscriminately raising the threshold reduces accessibility for quiet speakers.

5. Validation, follow-ups and self-review

Replay continuous negative audio and separately measure deliberate activations. Follow-up: how would battery limits change the model? Self-review: include continuous-time false alarms, missed triggers and local retention.

Sources and related practice

Technical reference: arxiv.org — Keyword spotting under device memory and compute constraints.

Source publication/update: 2017-11-20; revised 2018-02-14. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Design a real-time voice assistant; Detect acoustic events in continuous audio.

Continue your preparation

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