Refactor wake phrase handling: introduce REQUIRE_WAKE_WORD configuration, update documentation, and adjust assistant behavior for improved user experience.
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user