Wake word, from the review: a heard word always shows, holds end, stop and retry
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
1. Heard, but not the assistant and not on screen: Android blocks the activity start silently and runCatching called it a success, so nothing opened and nothing was posted. The opening is decided from what Android allows (wakeOpening: session, activity while an activity of the app is started, else a notification); "Heard you. Tap to ask." goes on a channel of its own (high importance, fixed words, times out after a minute) and the sheet cancels it. Settings says that only the digital assistant app opens by voice over other apps, with a row to that system setting. 2. The hold after the word is apart from the sheets' count and ends on a process scope in a finally; a starting service clears it. 3. A tap on the state in Settings retries now (WakeStatus.retryNow -> WakeListener.retryNow) and restarts the back-off; thirty seconds of samples taken in also resets the count of failures. 4. State writes carry the instance's token (WakeStatus.begin): an older instance's last "off" no longer overwrites a newer one. Engine.create is synchronized and writes the keywords to a file of its own. 5. numTrailingBlanks = 1 means more than one blank frame after the phrase (about 80 ms): the comment is corrected, and Settings and the test row say to pause after the phrase. 6. Stop no longer calls stopService or stopSelf() under a possible pending foreground start: the setting goes off and the loop ends the service with stopSelf(lastStartId); a start that arrives after the loop ended begins it again. 7. The "tap to listen again" notification is cancelled when the service starts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
24 files changed
+615
-104
No files matched your search
+6
-2
@@ -431,7 +431,7 @@ 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_phrase_line": "What you say, then a short pause: it counts once you stop. 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.",
|
||||
@@ -444,7 +444,7 @@ STRINGS: dict[str, str] = {
|
||||
"wake_sensitivity_high_line": "Hears you most easily, also from further away. Starts by mistake more often.",
|
||||
"wake_test": "Test the wake word",
|
||||
"wake_test_line": "For ten seconds, shows whether your phrase is heard, without opening the assistant.",
|
||||
"wake_test_say": "Say “%1$s” now…",
|
||||
"wake_test_say": "Say “%1$s” now, then pause…",
|
||||
"wake_test_heard": "Heard it",
|
||||
"wake_test_missed": "Not heard in ten seconds. Try closer to the phone, in a quieter moment, or a higher sensitivity.",
|
||||
"wake_test_off": "Turn the wake word on first.",
|
||||
@@ -471,6 +471,10 @@ STRINGS: dict[str, str] = {
|
||||
"wake_paused_microphone": "Wake word paused: LLeMbas is not allowed to use the microphone",
|
||||
"wake_stop": "Stop listening",
|
||||
"wake_heard": "Heard you. Tap to ask.",
|
||||
"channel_wake_heard": "Wake word heard",
|
||||
"wake_heard_line": "LLeMbas can open by itself over other apps only as the phone's digital assistant app.",
|
||||
"wake_not_assistant": "LLeMbas is not the digital assistant app",
|
||||
"wake_not_assistant_line": "So the wake word cannot open the assistant over other apps: you get a notification to tap. To open by voice anywhere, tap here and choose LLeMbas as the digital assistant app.",
|
||||
"wake_resume": "Listen for the wake word again",
|
||||
"wake_resume_line": "The phone restarted. Tap to start listening again.",
|
||||
"assist_notifications": "Summarise my notifications",
|
||||
|
||||
Reference in new issue
Block a user