Opt-in wake word: on-device keyword spotting in a microphone foreground service
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
- Engine: sherpa-onnx 2.0.1 keyword spotter (Apache-2.0) with the English zipformer-gigaspeech-3.3M KWS model (Apache-2.0, int8), fetched hash-pinned by scripts/fetch-wakeword.py into app/libs and src/full/assets (gitignored); CI and release run it. `full` flavour only (abiFilters arm64-v8a, armeabi-v7a, x86_64); `fdroid` has a stub engine and Settings says why. ProGuard keeps com.k2fsa.sherpa.onnx (JNI reads fields by name). - WakeWordService (foregroundServiceType microphone): persistent notification with Stop; audio only to the engine in memory; pauses while the sheet is up (AssistPresence), in battery saver, and with the screen off unless Settings says otherwise. On the word: the sheet opens listening through LembasAssistService.showSession when LLeMbas is the assistant, else the activity, else a "tap to ask" notification. - No microphone service at boot: WakeBootReceiver posts "tap to listen again"; MainActivity restarts a service the phone stopped. - Settings › Assistant › Wake word: switch (off), four built-in English phrases (BPE-tokenized with the model's bpe.model), screen-on only, battery-optimisation page; privacy and cost text. - The sheet's "no wake word" line now points at the setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
31 files changed
+1181
-22
No files matched your search
@@ -37,6 +37,10 @@ jobs:
|
||||
echo "369ad2b789f95a011f807e1fcb690ccef80bd7cd014fd139e73ae82dcc0baeab ktlint.jar" | sha256sum -c
|
||||
java -jar ktlint.jar "app/src/**/*.kt" "*.kts" "app/*.kts"
|
||||
|
||||
# The wake-word engine and model for the full build, hash-pinned (never in the repository).
|
||||
- name: Wake-word engine (hash-pinned)
|
||||
run: python3 scripts/fetch-wakeword.py
|
||||
|
||||
- uses: gradle/actions/wrapper-validation@v4
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
@@ -43,6 +43,10 @@ jobs:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
|
||||
# The wake-word engine and model for the full build, hash-pinned (never in the repository).
|
||||
- name: Wake-word engine (hash-pinned)
|
||||
run: python3 scripts/fetch-wakeword.py
|
||||
|
||||
- uses: gradle/actions/wrapper-validation@v4
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
Reference in new issue
Block a user