Wake phrases the model can hear: greeting x name, generated pieces, sensitivity
CI / check (push) Canceled after 0s

"Hey Lembas" could not work well: Lembas is not a word the model knows.

- The phrase is a greeting (Hey, OK, Hello) and a name (Assistant, Computer,
  Google, and ten ordinary names); the default is Hey Assistant and an old
  saved id reads as it.
- Token pieces are generated, not hand-written: fetch-wakeword.py also takes
  the model's bpe.model from the same pinned archive, gen-wake-phrases.py
  encodes every word with it into wake/WakeWords.kt, CI checks the committed
  table against the tokenizer, and WakeWordsTest checks every piece against
  tokens.txt. "OK" is spelled as the model's speech wrote it, OKAY.
  Elizabeth and Benjamin are dropped (four or more single-letter pieces).
- Each keyword line carries a boosting score and a trigger threshold
  (sherpa-onnx's ":boost #threshold"), chosen by a Sensitivity setting:
  Low 1.0/0.35, Normal 1.5/0.25, High 2.0/0.15; short phrases 0.05 stricter.
  numTrailingBlanks is the engine's own 1.
- Settings says the phrase is English whatever the app's language is, and
  that a Google device nearby answers to Google too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Fable 5.2 committed 2026-11-12 09:49:47 +00:00
1 parent 374574b9ce
commit 3046ad154a
26 files changed
+691 -41

No files matched your search

+11
View File
@@ -428,6 +428,17 @@ STRINGS: dict[str, str] = {
"wake_word_listen": "Listen for a wake word",
"wake_word_line": "Off by default. Say the phrase and the assistant opens, listening, over whatever app is on screen.",
"wake_word_unavailable": "Not in this build. The F-Droid build has no wake-word engine, because F-Droid builds every library from source; the build from llembas.eu has one.",
"wake_phrase_line": "What you say. In English, whatever language the app is in: the engine only knows English speech.",
"wake_greeting": "Greeting",
"wake_name": "Name",
"wake_name_google_line": "A Google phone or speaker nearby will answer too.",
"wake_sensitivity": "Sensitivity",
"wake_sensitivity_low": "Low",
"wake_sensitivity_low_line": "Starts by mistake least often. You may have to say the phrase more clearly, or twice.",
"wake_sensitivity_normal": "Normal",
"wake_sensitivity_normal_line": "The engine's own setting.",
"wake_sensitivity_high": "High",
"wake_sensitivity_high_line": "Hears you most easily, also from further away. Starts by mistake more often.",
"wake_screen_only": "Only while the screen is on",
"wake_screen_only_line": "Off: it listens with the screen off too, at more cost to the battery.",
"wake_battery": "Let it run in the background",