Skip to content

wakeword

diapason.speech.wakeword

Always-on wake-word listener (local mic → Talk).

Backends: - phrase_gate — energy/VAD + tiny Whisper STT + regex phrases (default) - openwakeword — ML scores on PCM (pre-trained hey_jarvis or custom ONNX) - auto — openWakeWord if installed, else phrase_gate

Default action: emit talk_open on local_trigger (open Talk orb).

WakeWordListener

Mic loop: openWakeWord ML scores and/or STT phrase gate → callback.

check_text(text)

Unit-test / manual path: return True and invoke callback if wake.

default_transcribe_pcm(pcm, sample_rate)

Best-effort local STT (faster-whisper tiny). Returns '' if unavailable.

wake_config_from_toml(*, cooldown=None, min_rms=None, phrases=None, backend=None)

Build WakeListenConfig merging CLI overrides with [speech.wakeword].