Hotword detection: trigger quickly while reducing false activations
Hotword detection finds a predefined trigger phrase in a continuous audio stream. Learn to balance false accepts, missed triggers, and latency, then evaluate on the target device and environment.
Hotword detection, also called wake-word detection, listens to a continuous audio stream for a short predefined phrase such as “Hey …” and triggers an assistant or device. Unlike full-sentence speech recognition, it decides whether the target phrase occurred and starts later processing. A useful detector must balance false accepts, missed triggers, and detection latency.
How it differs from custom vocabulary biasing
Custom vocabulary biasing helps a recognizer transcribe names or technical terms inside a sentence. Hotword detection is a separate trigger task: it decides whether a keyword occurred in the audio stream. After a trigger, a larger ASR system may process the command. The key question is whether it stays inactive when the phrase was not spoken.
Three core metrics
**False accept / false alarm:** the device activates when the hotword was absent. Measure per hour of non-hotword audio or as a rate over negative utterances.
**False reject / miss:** a real hotword is not detected. Report recall or miss rate.
**Latency:** time between the hotword ending and detection. Very early decisions may fire before the phrase is complete; late ones may make users repeat themselves.
Lowering the detection threshold usually catches more true triggers but can increase false accepts. Choose an acceptable false-accept target for the deployment setting, then compare miss rate and latency at that operating point. Do not estimate false accepts and false rejects from mismatched test conditions.
Build evaluation data for the real use
Google Speech Commands is a public benchmark of short English word clips designed for small-footprint detection of ten or fewer words. It emphasizes avoiding false positives from background sounds and unrelated speech. It does not represent every real hotword, language, device, or always-on environment.
For a product, collect positive examples of the chosen phrase and hard negatives: similar-sounding phrases, different speakers, TV/music/conversation, silence, and noise that might trigger the detector. Split train and test by speaker and recording session. Include long continuous audio without the hotword to estimate false accepts per hour.
Match streaming and latency to the device
A streaming model processes audio chunks as they arrive, allowing quick on-device decisions. A non-streaming model waits for a complete segment. Conversion to streaming can change accuracy and latency, so measure frame processing time, memory, power, and detection quality on the target hardware.
Jose et al. (2022) describe the accuracy-latency trade-off and report a method with 25% relative improvement in false accepts over a baseline at a fixed latency target. Rybakov et al. (2020) show that streaming and non-streaming modes can differ in accuracy and latency in a Pixel 4 evaluation. These are results for their studied models and setup, not guaranteed gains on every device.
Reproducible setup and validation
Define the phrase, supported languages/pronunciations, triggered action, latency goal, and acceptable false-accept rate.
Record positives and hard negatives with microphones, distances, rooms, and noise similar to real use. Obtain consent and minimize capture of sensitive nearby conversations.
Split data by speaker and session. Keep long negative recordings to estimate false accepts per hour.
Select a threshold on a development set and freeze it. On held-out test audio, report false accepts, misses, latency, and resource use together.
Pilot under real conditions, including battery state, device orientation, and noise. If false activations are frequent, raise the threshold and add hard negatives; if triggers are missed, inspect speaker diversity and the microphone path.
For always-listening designs, explain whether processing stays on-device, when audio is stored or transmitted, and how to disable detection.
References
[Warden, Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition (2018)](https://arxiv.org/abs/1804.03209)
[Jose et al., Latency Control for Keyword Spotting (2022)](https://arxiv.org/abs/2206.07261)
[Rybakov et al., Streaming Keyword Spotting on Mobile Devices (2020)](https://arxiv.org/abs/2005.06720)