voice: default wake word to "Hey Computer", capture command after a pause

openWakeWord ships no "computer" model, so pin a community
openWakeWord-compatible ONNX (Apache-2.0, sha256 in pins.json `wake_word`) and
fetch it into .runtime/voice/wake from scripts/voice-models.py. Its scores run
lower than the official models (~0.26-0.82 on the phrase, <0.02 on negatives),
so the seeded wake.threshold is 0.2 (the official models score ~0.99 at 0.5).

Also fix command capture: after the wake word the daemon now waits
listen_timeout_s (default 3s) for the command's speech to begin instead of
assuming it is glued to the wake word, so a natural pause while the cue beep
plays no longer truncates the command.
This commit is contained in:
gabby committed 2026-10-09 08:19:36 +00:00
1 parent ae37abbc3f
commit ec39a990e4
7 files changed
+218 -29

No files matched your search

+3 -3
View File
@@ -642,9 +642,9 @@ Voice command gateway (wake word + speech-to-text + text-to-speech):
Enable it in config.json with gateway.voice.enabled = true, then run it in
the foreground (it needs your audio session; it is NOT a systemd unit):
HF_HOME="$HF_CACHE" "$PYTHON" -m semif_agent.cli gateway --platform voice
- Say the wake word (gateway.voice.wake.model, default 'hey_mycroft') and
speak; the reply is spoken back. After each reply the next utterance needs
no wake word for gateway.voice.follow_up_window_s.
- Say the wake word (gateway.voice.wake.model, default 'hey_computer' — phrase
"Hey Computer") and speak; the reply is spoken back. After each reply the
next utterance needs no wake word for gateway.voice.follow_up_window_s.
- If the mic or speaker is silent/quiet, set the ALSA mixer (PortAudio has no
volume control) and persist it:
alsamixer # or: amixer -c <card> sset 'Speaker' unmute