feat: add offline wake-word detection with sherpa-onnx

- Integrate sherpa-onnx for local "Computer" wake-word detection
- Add foreground service (microphone type) for continued listening across apps
- Request RECORD_AUDIO, POST_NOTIFICATIONS, and foreground service permissions
- Download and verify pinned sherpa-onnx model (17 MB) on first enable
- Update LauncherViewModel with wake-word state and controller
- Add WorkManager and commons-compress dependencies for model extraction
- Update README with wake-word feature details and limitations
This commit is contained in:
jahruz67
2026-07-25 14:48:05 -07:00
parent 29fc34dbdf
commit 3e1c2e714a
13 changed files with 1117 additions and 9 deletions
+3
View File
@@ -47,7 +47,10 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
implementation("androidx.datastore:datastore-preferences:1.1.1")
implementation("androidx.documentfile:documentfile:1.0.1")
implementation("androidx.work:work-runtime-ktx:2.10.0")
implementation("io.coil-kt:coil-compose:2.7.0")
implementation("org.apache.commons:commons-compress:1.27.1")
implementation("com.k2fsa:sherpa-onnx:1.13.4@aar")
debugImplementation("androidx.compose.ui:ui-tooling")
}