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

+13
View File
@@ -10,6 +10,10 @@ which the int8 encoder, decoder and joiner and the token table go into the APK's
`version` file (a hash of the four pinned hashes): the app copies the model out of the APK once
per version, so a new model replaces the old one on the phone.
The same archive carries the model's `bpe.model`, the tokenizer its token pieces come from. It
does not go into the APK (the phone has no tokenizer): it is written to `build/wakeword/`, where
`scripts/gen-wake-phrases.py` reads it to spell the wake phrases.
Neither file is in the repository: prebuilt binaries are not source. CI runs this before Gradle;
an F-Droid build, which builds every library from source, uses the `fdroid` flavour, which has
no engine (`app/src/fdroid/.../wake/Engine.kt`). Every download is checked against the SHA-256
@@ -42,6 +46,9 @@ FILES = {
"joiner-epoch-12-avg-2-chunk-16-left-64.int8.onnx": ("joiner.int8.onnx", "eae9da0c7e1e6c6a3f4cc42d167899c388f6c6701b94cb96320e4f55df79624c"),
"tokens.txt": ("tokens.txt", "fd2ded4050a55d2b1578870ba8697d02371980217806b7558bd0a5cc60f3ba53"),
}
# The model's tokenizer, from the same archive: for scripts/gen-wake-phrases.py, not for the APK.
BPE = ROOT / "build/wakeword/bpe.model"
BPE_SHA = "c8a2a0129c4ab8e463164c142f82d25649661b122c8cd0b7aab5c9e80b90ad24"
# What the app keys its copy of the model by: changes whenever a pinned file does.
MODEL_VERSION = hashlib.sha256("".join(sorted(d for _, d in FILES.values())).encode()).hexdigest()[:16]
@@ -71,6 +78,7 @@ def main() -> None:
print(f"fetch-wakeword: {AAR.relative_to(ROOT)}")
wanted = {ASSETS / name: digest for name, digest in FILES.values()}
version = ASSETS / "version"
wanted[BPE] = BPE_SHA
if all(p.exists() and sha(p.read_bytes()) == d for p, d in wanted.items()):
version.write_text(MODEL_VERSION + "\n")
print("fetch-wakeword: engine and model are in place")
@@ -82,6 +90,11 @@ def main() -> None:
if sha(data) != digest:
sys.exit(f"fetch-wakeword: {source} in the archive is not the pinned file")
(ASSETS / name).write_bytes(data)
bpe = archive.extractfile(f"{MODEL}/bpe.model").read()
if sha(bpe) != BPE_SHA:
sys.exit("fetch-wakeword: bpe.model in the archive is not the pinned file")
BPE.parent.mkdir(parents=True, exist_ok=True)
BPE.write_bytes(bpe)
version.write_text(MODEL_VERSION + "\n")
print(f"fetch-wakeword: {ASSETS.relative_to(ROOT)} ({len(FILES)} files)")
+108
View File
@@ -0,0 +1,108 @@
#!/usr/bin/env python3
"""The wake phrases, spelled in the model's own token pieces -- generated, never written by hand.
scripts/gen-wake-phrases.py write app/src/main/java/.../wake/WakeWords.kt
scripts/gen-wake-phrases.py --check fail if that file is not what this script writes
A wake phrase is a greeting and a name ("Hey Assistant"). The engine is an open-vocabulary
keyword spotter: it hears any phrase it is given as a sequence of the model's BPE pieces, and the
phone has no tokenizer, so the pieces are worked out here with the model's `bpe.model` (fetched
hash-pinned by `scripts/fetch-wakeword.py`; needs `sentencepiece`, pinned in
`scripts/wake-requirements.txt`) and committed as a Kotlin table. `WakeWordsTest` checks every
piece against the model's `tokens.txt` in CI.
The words are English, as the model is (trained on GigaSpeech), and written the way that speech
was transcribed: capitals, and "OK" as the word OKAY, which is one piece of its own.
A name the tokenizer can only spell out is dropped: with four or more single-letter pieces
(E·LI·Z·A·B·E·TH) nearly every step of the phrase is a sound the model has to place alone, which
is where a spotter misses. What was dropped is listed in the generated file.
"""
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
BPE = ROOT / "build/wakeword/bpe.model"
TOKENS = ROOT / "app/src/full/assets/wakeword/tokens.txt"
OUT = ROOT / "app/src/main/java/eu/llembas/android/wake/WakeWords.kt"
# What the person sees -> what the model heard it written as (where the two differ).
SPOKEN = {"OK": "OKAY"}
GREETINGS = ["Hey", "OK", "Hello"]
# The three that say what it is, then ordinary names of three syllables or more, both genders.
NAMES = [
"Assistant", "Computer", "Google",
"Victoria", "Samantha", "Jessica", "Amanda", "Olivia", "Elizabeth",
"Oliver", "Sebastian", "Jonathan", "Benjamin", "Alexander", "Christopher",
]
MAX_SINGLE_LETTERS = 3
def single_letters(pieces: list[str]) -> int:
return sum(1 for piece in pieces if len(piece.lstrip("▁")) == 1)
def main() -> None:
try:
import sentencepiece
except ImportError:
sys.exit("gen-wake-phrases: needs sentencepiece (pip install -r scripts/wake-requirements.txt, in a venv)")
if not BPE.exists():
sys.exit("gen-wake-phrases: no bpe.model -- run scripts/fetch-wakeword.py first")
model = sentencepiece.SentencePieceProcessor(model_file=str(BPE))
known = {line.rsplit(" ", 1)[0] for line in TOKENS.read_text(encoding="utf-8").splitlines()}
def spell(word: str) -> list[str]:
pieces = model.encode(SPOKEN.get(word.upper(), word.upper()), out_type=str)
unknown = [piece for piece in pieces if piece not in known]
if unknown:
sys.exit(f"gen-wake-phrases: {word}: {unknown} not in tokens.txt")
return pieces
greetings = [(word, spell(word)) for word in GREETINGS]
names, dropped = [], []
for word in NAMES:
pieces = spell(word)
(dropped if single_letters(pieces) > MAX_SINGLE_LETTERS else names).append((word, pieces))
# A phrase is spelled as its two words side by side: true of this tokenizer, and checked.
for greeting, g in greetings:
for name, n in names:
whole = model.encode(f"{SPOKEN.get(greeting.upper(), greeting.upper())} {name.upper()}", out_type=str)
if whole != g + n:
sys.exit(f"gen-wake-phrases: {greeting} {name} is not its words' pieces side by side: {whole}")
def row(word: str, pieces: list[str]) -> str:
return f' WakeWord("{word.lower()}", "{word}", "{" ".join(pieces)}"),'
lines = [
"// Generated by scripts/gen-wake-phrases.py from the model's bpe.model. Do not edit: edit the lists there.",
"package eu.llembas.android.wake",
"",
"/**",
" * The words a wake phrase is made of -- a greeting and a name -- each with its spelling in the",
" * model's BPE pieces (`sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01`). English, as the",
" * model is.",
]
if dropped:
lines += [" *", " * Left out, because the tokenizer can only spell them out letter by letter:"]
lines += [f" * {word} ({' '.join(pieces)})" for word, pieces in dropped]
lines += [" */", "object WakeWords {", " val greetings = listOf("]
lines += [row(word, pieces) for word, pieces in greetings]
lines += [" )", "", " val names = listOf("]
lines += [row(word, pieces) for word, pieces in names]
lines += [" )", "}", ""]
text = "\n".join(lines)
if "--check" in sys.argv:
if not OUT.exists() or OUT.read_text(encoding="utf-8") != text:
sys.exit(f"gen-wake-phrases: {OUT.relative_to(ROOT)} is not what the model's tokenizer gives; run this script")
print(f"gen-wake-phrases: {len(greetings)} greetings, {len(names)} names, as generated")
return
OUT.write_text(text, encoding="utf-8")
print(f"gen-wake-phrases: {len(greetings)} greetings x {len(names)} names; dropped: {', '.join(w for w, _ in dropped) or 'none'}")
if __name__ == "__main__":
main()
+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",
+88
View File
@@ -274,8 +274,11 @@
"wake_failed_microphone": "Budicí slovo nefunguje: mikrofon se nespustil",
"wake_failed_model": "Budicí slovo nefunguje: jeho model se v tomto telefonu nepodařilo rozbalit",
"wake_failed_no_engine": "Budicí slovo nefunguje: toto sestavení nemá modul",
"wake_greeting": "Oslovení",
"wake_heard": "Slyšel jsem vás. Klepněte a ptejte se.",
"wake_listening_for": "Naslouchám frázi „%1$s“",
"wake_name": "Jméno",
"wake_name_google_line": "Ozve se i telefon nebo reproduktor Google poblíž.",
"wake_notification_line": "Dokud ji neřeknete, nic neopustí telefon.",
"wake_off": "Budicí slovo neposlouchá",
"wake_paused_assistant": "Budicí slovo je pozastaveno, dokud je asistent otevřený",
@@ -283,10 +286,18 @@
"wake_paused_microphone": "Budicí slovo pozastaveno: LLeMbas nemá povolený mikrofon",
"wake_paused_screen": "Budicí slovo pozastaveno: obrazovka je zhasnutá",
"wake_paused_silent": "Budicí slovo nic neslyší: mikrofon používá jiná aplikace, nebo je v telefonu vypnutý",
"wake_phrase_line": "Tohle říkáte. Anglicky, ať je aplikace v jakémkoli jazyce: modul zná jen anglickou řeč.",
"wake_resume": "Znovu naslouchat budicímu slovu",
"wake_resume_line": "Telefon se restartoval. Klepnutím znovu spustíte naslouchání.",
"wake_screen_only": "Jen při zapnuté obrazovce",
"wake_screen_only_line": "Vypnuto: poslouchá i při zhasnuté obrazovce, za cenu vyšší spotřeby baterie.",
"wake_sensitivity": "Citlivost",
"wake_sensitivity_high": "Vysoká",
"wake_sensitivity_high_line": "Slyší vás nejsnáze, i z větší dálky. Omylem se spustí častěji.",
"wake_sensitivity_low": "Nízká",
"wake_sensitivity_low_line": "Omylem se spustí nejméně často. Frázi možná budete muset říct zřetelněji nebo dvakrát.",
"wake_sensitivity_normal": "Normální",
"wake_sensitivity_normal_line": "Vlastní nastavení modulu.",
"wake_starting": "Budicí slovo se spouští…",
"wake_stop": "Přestat naslouchat",
"wake_tap_to_start": "Klepnutím ho znovu spustíte. Pokud se Android zeptá, povolte mikrofon.",
@@ -576,8 +587,11 @@
"wake_failed_microphone": "Aktivierungswort funktioniert nicht: Das Mikrofon ist nicht gestartet",
"wake_failed_model": "Aktivierungswort funktioniert nicht: Sein Modell konnte auf diesem Telefon nicht entpackt werden",
"wake_failed_no_engine": "Aktivierungswort funktioniert nicht: Dieser Build hat keine Engine",
"wake_greeting": "Anrede",
"wake_heard": "Gehört. Tippe, um zu fragen.",
"wake_listening_for": "Hört auf „%1$s“",
"wake_name": "Name",
"wake_name_google_line": "Ein Google-Telefon oder -Lautsprecher in der Nähe antwortet ebenfalls.",
"wake_notification_line": "Bis du es sagst, verlässt nichts das Telefon.",
"wake_off": "Das Aktivierungswort hört nicht zu",
"wake_paused_assistant": "Aktivierungswort pausiert, solange der Assistent offen ist",
@@ -585,10 +599,18 @@
"wake_paused_microphone": "Aktivierungswort pausiert: LLeMbas darf das Mikrofon nicht verwenden",
"wake_paused_screen": "Aktivierungswort pausiert: Bildschirm aus",
"wake_paused_silent": "Aktivierungswort hört nichts: Eine andere App hat das Mikrofon, oder das Mikrofon des Telefons ist ausgeschaltet",
"wake_phrase_line": "Das sagst du. Auf Englisch, egal in welcher Sprache die App ist: Die Engine kennt nur englische Sprache.",
"wake_resume": "Wieder auf das Aktivierungswort hören",
"wake_resume_line": "Das Telefon wurde neu gestartet. Tippe, um wieder zuzuhören.",
"wake_screen_only": "Nur bei eingeschaltetem Bildschirm",
"wake_screen_only_line": "Aus: Es hört auch bei ausgeschaltetem Bildschirm zu, was mehr Akku kostet.",
"wake_sensitivity": "Empfindlichkeit",
"wake_sensitivity_high": "Hoch",
"wake_sensitivity_high_line": "Hört dich am leichtesten, auch aus größerer Entfernung. Startet öfter versehentlich.",
"wake_sensitivity_low": "Niedrig",
"wake_sensitivity_low_line": "Startet am seltensten versehentlich. Du musst den Satz vielleicht deutlicher oder zweimal sagen.",
"wake_sensitivity_normal": "Normal",
"wake_sensitivity_normal_line": "Die eigene Einstellung der Engine.",
"wake_starting": "Aktivierungswort wird gestartet…",
"wake_stop": "Nicht mehr zuhören",
"wake_tap_to_start": "Tippe, um es wieder zu starten. Wenn Android fragt, erlaube das Mikrofon.",
@@ -877,8 +899,11 @@
"wake_failed_microphone": "La palabra de activación no funciona: el micrófono no se inició",
"wake_failed_model": "La palabra de activación no funciona: no se pudo desempaquetar su modelo en este teléfono",
"wake_failed_no_engine": "La palabra de activación no funciona: esta versión no tiene motor",
"wake_greeting": "Saludo",
"wake_heard": "Te he oído. Toca para preguntar.",
"wake_listening_for": "Escuchando «%1$s»",
"wake_name": "Nombre",
"wake_name_google_line": "Un teléfono o altavoz de Google cercano también responderá.",
"wake_notification_line": "Nada sale del teléfono hasta que lo digas.",
"wake_off": "La palabra de activación no está escuchando",
"wake_paused_assistant": "Palabra de activación en pausa mientras el asistente está abierto",
@@ -886,10 +911,18 @@
"wake_paused_microphone": "Palabra de activación en pausa: LLeMbas no tiene permiso para usar el micrófono",
"wake_paused_screen": "Palabra de activación en pausa: la pantalla está apagada",
"wake_paused_silent": "La palabra de activación no oye nada: otra app tiene el micrófono, o el micrófono del teléfono está apagado",
"wake_phrase_line": "Lo que dices. En inglés, sea cual sea el idioma de la app: el motor solo conoce el habla inglesa.",
"wake_resume": "Volver a escuchar la palabra de activación",
"wake_resume_line": "El teléfono se reinició. Toca para volver a escuchar.",
"wake_screen_only": "Solo con la pantalla encendida",
"wake_screen_only_line": "Desactivado: también escucha con la pantalla apagada, con más gasto de batería.",
"wake_sensitivity": "Sensibilidad",
"wake_sensitivity_high": "Alta",
"wake_sensitivity_high_line": "Te oye con más facilidad, también desde más lejos. Se activa por error más a menudo.",
"wake_sensitivity_low": "Baja",
"wake_sensitivity_low_line": "Es la que menos se activa por error. Puede que tengas que decir la frase con más claridad, o dos veces.",
"wake_sensitivity_normal": "Normal",
"wake_sensitivity_normal_line": "El ajuste propio del motor.",
"wake_starting": "Iniciando la palabra de activación…",
"wake_stop": "Dejar de escuchar",
"wake_tap_to_start": "Toca para iniciarla de nuevo. Si Android pregunta, permite el micrófono.",
@@ -1179,8 +1212,11 @@
"wake_failed_microphone": "Le mot d’activation ne fonctionne pas : le micro n’a pas démarré",
"wake_failed_model": "Le mot d’activation ne fonctionne pas : son modèle n’a pas pu être décompressé sur ce téléphone",
"wake_failed_no_engine": "Le mot d’activation ne fonctionne pas : cette version n’a pas de moteur",
"wake_greeting": "Salutation",
"wake_heard": "Entendu. Touchez pour demander.",
"wake_listening_for": "À l’écoute de « %1$s »",
"wake_name": "Nom",
"wake_name_google_line": "Un téléphone ou une enceinte Google à proximité répondra aussi.",
"wake_notification_line": "Rien ne quitte le téléphone avant que vous le disiez.",
"wake_off": "Le mot d’activation n’écoute pas",
"wake_paused_assistant": "Mot d’activation en pause pendant que l’assistant est ouvert",
@@ -1188,10 +1224,18 @@
"wake_paused_microphone": "Mot d’activation en pause : LLeMbas n’est pas autorisé à utiliser le micro",
"wake_paused_screen": "Mot d’activation en pause : écran éteint",
"wake_paused_silent": "Le mot d’activation n’entend rien : une autre app utilise le micro, ou le micro du téléphone est coupé",
"wake_phrase_line": "Ce que vous dites. En anglais, quelle que soit la langue de l’app : le moteur ne connaît que la parole anglaise.",
"wake_resume": "Écouter à nouveau le mot d’activation",
"wake_resume_line": "Le téléphone a redémarré. Touchez pour reprendre l’écoute.",
"wake_screen_only": "Seulement écran allumé",
"wake_screen_only_line": "Désactivé : il écoute aussi écran éteint, au prix de plus de batterie.",
"wake_sensitivity": "Sensibilité",
"wake_sensitivity_high": "Élevée",
"wake_sensitivity_high_line": "Vous entend le plus facilement, même de plus loin. Se déclenche plus souvent par erreur.",
"wake_sensitivity_low": "Faible",
"wake_sensitivity_low_line": "Se déclenche le moins souvent par erreur. Vous devrez peut-être dire la phrase plus distinctement, ou deux fois.",
"wake_sensitivity_normal": "Normale",
"wake_sensitivity_normal_line": "Le réglage propre au moteur.",
"wake_starting": "Démarrage du mot d’activation…",
"wake_stop": "Arrêter l’écoute",
"wake_tap_to_start": "Touchez pour le relancer. Si Android le demande, autorisez le micro.",
@@ -1481,8 +1525,11 @@
"wake_failed_microphone": "Az ébresztőszó nem működik: a mikrofon nem indult el",
"wake_failed_model": "Az ébresztőszó nem működik: a modelljét nem sikerült kicsomagolni ezen a telefonon",
"wake_failed_no_engine": "Az ébresztőszó nem működik: ebben a változatban nincs motor",
"wake_greeting": "Megszólítás",
"wake_heard": "Hallottalak. Koppints a kérdezéshez.",
"wake_listening_for": "Figyeli: „%1$s”",
"wake_name": "Név",
"wake_name_google_line": "A közelben lévő Google-telefon vagy -hangszóró is válaszolni fog.",
"wake_notification_line": "Amíg ki nem mondod, semmi nem hagyja el a telefont.",
"wake_off": "Az ébresztőszó nem figyel",
"wake_paused_assistant": "Az ébresztőszó szünetel, amíg az asszisztens nyitva van",
@@ -1490,10 +1537,18 @@
"wake_paused_microphone": "Ébresztőszó szünetel: a LLeMbas nem használhatja a mikrofont",
"wake_paused_screen": "Ébresztőszó szünetel: a képernyő ki van kapcsolva",
"wake_paused_silent": "Az ébresztőszó semmit nem hall: másik alkalmazás használja a mikrofont, vagy a telefon mikrofonja ki van kapcsolva",
"wake_phrase_line": "Ezt mondod. Angolul, bármilyen nyelvű is az alkalmazás: a motor csak az angol beszédet ismeri.",
"wake_resume": "Ébresztőszó figyelése újra",
"wake_resume_line": "A telefon újraindult. Koppints a figyelés folytatásához.",
"wake_screen_only": "Csak bekapcsolt képernyőnél",
"wake_screen_only_line": "Kikapcsolva kikapcsolt képernyőnél is figyel, ami több akkumulátort fogyaszt.",
"wake_sensitivity": "Érzékenység",
"wake_sensitivity_high": "Magas",
"wake_sensitivity_high_line": "A legkönnyebben hall meg, távolabbról is. Gyakrabban indul el tévedésből.",
"wake_sensitivity_low": "Alacsony",
"wake_sensitivity_low_line": "A legritkábban indul el tévedésből. Lehet, hogy tisztábban vagy kétszer kell kimondanod a kifejezést.",
"wake_sensitivity_normal": "Normál",
"wake_sensitivity_normal_line": "A motor saját beállítása.",
"wake_starting": "Az ébresztőszó indul…",
"wake_stop": "Figyelés leállítása",
"wake_tap_to_start": "Koppints az újraindításához. Ha az Android rákérdez, engedélyezd a mikrofont.",
@@ -1782,8 +1837,11 @@
"wake_failed_microphone": "La parola di attivazione non funziona: il microfono non si è avviato",
"wake_failed_model": "La parola di attivazione non funziona: non è stato possibile estrarre il suo modello su questo telefono",
"wake_failed_no_engine": "La parola di attivazione non funziona: questa build non ha un motore",
"wake_greeting": "Saluto",
"wake_heard": "Ti ho sentito. Tocca per chiedere.",
"wake_listening_for": "In ascolto di «%1$s»",
"wake_name": "Nome",
"wake_name_google_line": "Risponderà anche un telefono o un altoparlante Google nelle vicinanze.",
"wake_notification_line": "Niente lascia il telefono finché non lo dici.",
"wake_off": "La parola di attivazione non è in ascolto",
"wake_paused_assistant": "Parola di attivazione in pausa mentre l’assistente è aperto",
@@ -1791,10 +1849,18 @@
"wake_paused_microphone": "Parola di attivazione in pausa: LLeMbas non ha il permesso di usare il microfono",
"wake_paused_screen": "Parola di attivazione in pausa: schermo spento",
"wake_paused_silent": "La parola di attivazione non sente nulla: un’altra app sta usando il microfono, o il microfono del telefono è disattivato",
"wake_phrase_line": "Quello che dici. In inglese, qualunque sia la lingua dell’app: il motore conosce solo il parlato inglese.",
"wake_resume": "Ascolta di nuovo la parola di attivazione",
"wake_resume_line": "Il telefono si è riavviato. Tocca per ricominciare ad ascoltare.",
"wake_screen_only": "Solo a schermo acceso",
"wake_screen_only_line": "Disattivato: ascolta anche a schermo spento, con più consumo di batteria.",
"wake_sensitivity": "Sensibilità",
"wake_sensitivity_high": "Alta",
"wake_sensitivity_high_line": "Ti sente più facilmente, anche da più lontano. Si attiva per errore più spesso.",
"wake_sensitivity_low": "Bassa",
"wake_sensitivity_low_line": "È quella che si attiva per errore meno spesso. Potresti dover dire la frase più chiaramente, o due volte.",
"wake_sensitivity_normal": "Normale",
"wake_sensitivity_normal_line": "L’impostazione propria del motore.",
"wake_starting": "Avvio della parola di attivazione…",
"wake_stop": "Smetti di ascoltare",
"wake_tap_to_start": "Tocca per riavviarla. Se Android lo chiede, consenti il microfono.",
@@ -2083,8 +2149,11 @@
"wake_failed_microphone": "Słowo aktywujące nie działa: mikrofon się nie uruchomił",
"wake_failed_model": "Słowo aktywujące nie działa: nie udało się rozpakować jego modelu na tym telefonie",
"wake_failed_no_engine": "Słowo aktywujące nie działa: ta wersja nie ma silnika",
"wake_greeting": "Powitanie",
"wake_heard": "Słyszę. Dotknij, aby zapytać.",
"wake_listening_for": "Nasłuchuje „%1$s”",
"wake_name": "Imię",
"wake_name_google_line": "Odpowie też telefon lub głośnik Google w pobliżu.",
"wake_notification_line": "Nic nie opuszcza telefonu, dopóki tego nie powiesz.",
"wake_off": "Słowo aktywujące nie nasłuchuje",
"wake_paused_assistant": "Słowo aktywujące wstrzymane, gdy asystent jest otwarty",
@@ -2092,10 +2161,18 @@
"wake_paused_microphone": "Słowo aktywujące wstrzymane: LLeMbas nie ma zgody na używanie mikrofonu",
"wake_paused_screen": "Słowo aktywujące wstrzymane: ekran jest wyłączony",
"wake_paused_silent": "Słowo aktywujące nic nie słyszy: inna aplikacja używa mikrofonu albo mikrofon telefonu jest wyłączony",
"wake_phrase_line": "To, co mówisz. Po angielsku, niezależnie od języka aplikacji: silnik zna tylko mowę angielską.",
"wake_resume": "Znów nasłuchuj słowa aktywującego",
"wake_resume_line": "Telefon uruchomił się ponownie. Dotknij, aby znów słuchać.",
"wake_screen_only": "Tylko przy włączonym ekranie",
"wake_screen_only_line": "Wyłączone: słucha także przy wyłączonym ekranie, kosztem baterii.",
"wake_sensitivity": "Czułość",
"wake_sensitivity_high": "Wysoka",
"wake_sensitivity_high_line": "Słyszy Cię najłatwiej, także z większej odległości. Częściej uruchamia się przez pomyłkę.",
"wake_sensitivity_low": "Niska",
"wake_sensitivity_low_line": "Najrzadziej uruchamia się przez pomyłkę. Być może trzeba będzie powiedzieć frazę wyraźniej albo dwa razy.",
"wake_sensitivity_normal": "Normalna",
"wake_sensitivity_normal_line": "Własne ustawienie silnika.",
"wake_starting": "Uruchamianie słowa aktywującego…",
"wake_stop": "Przestań słuchać",
"wake_tap_to_start": "Dotknij, aby uruchomić je ponownie. Jeśli Android zapyta, zezwól na mikrofon.",
@@ -2384,8 +2461,11 @@
"wake_failed_microphone": "Budiace slovo nefunguje: mikrofón sa nespustil",
"wake_failed_model": "Budiace slovo nefunguje: jeho model sa v tomto telefóne nepodarilo rozbaliť",
"wake_failed_no_engine": "Budiace slovo nefunguje: toto zostavenie nemá modul",
"wake_greeting": "Oslovenie",
"wake_heard": "Počul som vás. Ťuknite a pýtajte sa.",
"wake_listening_for": "Počúvam frázu „%1$s“",
"wake_name": "Meno",
"wake_name_google_line": "Ozve sa aj telefón alebo reproduktor Google nablízku.",
"wake_notification_line": "Kým ju nepoviete, nič neopustí telefón.",
"wake_off": "Budiace slovo nepočúva",
"wake_paused_assistant": "Budiace slovo je pozastavené, kým je asistent otvorený",
@@ -2393,10 +2473,18 @@
"wake_paused_microphone": "Budiace slovo pozastavené: LLeMbas nemá povolený mikrofón",
"wake_paused_screen": "Budiace slovo pozastavené: obrazovka je zhasnutá",
"wake_paused_silent": "Budiace slovo nič nepočuje: mikrofón používa iná aplikácia alebo je v telefóne vypnutý",
"wake_phrase_line": "Toto hovoríte. Po anglicky, nech je aplikácia v akomkoľvek jazyku: modul pozná len anglickú reč.",
"wake_resume": "Znova počúvať budiace slovo",
"wake_resume_line": "Telefón sa reštartoval. Ťuknutím znova spustíte počúvanie.",
"wake_screen_only": "Len pri zapnutej obrazovke",
"wake_screen_only_line": "Vypnuté: počúva aj pri zhasnutej obrazovke, za cenu vyššej spotreby batérie.",
"wake_sensitivity": "Citlivosť",
"wake_sensitivity_high": "Vysoká",
"wake_sensitivity_high_line": "Počuje vás najľahšie, aj z väčšej diaľky. Omylom sa spustí častejšie.",
"wake_sensitivity_low": "Nízka",
"wake_sensitivity_low_line": "Omylom sa spustí najmenej často. Frázu možno budete musieť povedať zreteľnejšie alebo dvakrát.",
"wake_sensitivity_normal": "Normálna",
"wake_sensitivity_normal_line": "Vlastné nastavenie modulu.",
"wake_starting": "Budiace slovo sa spúšťa…",
"wake_stop": "Prestať počúvať",
"wake_tap_to_start": "Ťuknutím ho znova spustíte. Ak sa Android opýta, povoľte mikrofón.",
+5
View File
@@ -0,0 +1,5 @@
# For scripts/gen-wake-phrases.py only (never in the app): the tokenizer the model's bpe.model
# is read with. Hash-pinned; the two wheels are CPython 3.12 and 3.13 on x86-64 Linux.
sentencepiece==0.2.3 \
--hash=sha256:cc3189b79c1ffda767f71b04238c27ac746f3b7abc263eab9a41c4cf46aee49e \
--hash=sha256:4d82f2a0f704f5d0cf027bc8cc5ad49e23c11a9cc0b5bd08ca51985917963bf5