Refactor wake phrase handling: introduce REQUIRE_WAKE_WORD configuration, update documentation, and adjust assistant behavior for improved user experience.

This commit is contained in:
TheMajesticMagician
2026-10-25 22:48:37 -06:00
parent ca65670638
commit a8c7db9520
7 changed files with 84 additions and 54 deletions
+14
View File
@@ -0,0 +1,14 @@
"""Test runs use the stock wake phrases, not whatever a developer happens to
have in the project's `.env`. The speech tests are written against the
defaults; a local `WAKE_WORDS=...` that narrows them would fail the suite for
a reason that isn't in the code. Environment variables set by the shell still
win, and everything else in `.env` is left alone."""
import os
os.environ.setdefault("WAKE_WORDS", (
"hey bolt,bolt,thunderbolt,hey thunderbolt,ok bolt,okay bolt,yo bolt,hi bolt,"
"hey assistant,ok assistant,okay assistant,"
"hey bolts,hey volt,hey bold,hey boat,okay volt,hey thunder bolt,thunder bolt"
))
os.environ.setdefault("ANYWHERE_WAKE_WORDS", "assistant")