Merge Hey Claude's actions into Hey Dumby

Hey Dumby is now the one app: the wake-word listener (with the
pre-roll + double-check trick from Hey Claude, so a stray word
doesn't trigger it) branches into three things depending on what
it hears.

- The full phrase ("hey dummy take a note" by default) drops
  straight into dictation, unchanged from before.
- The bare phrase alone ("hey dummy"/"hey dumby"/"okay dummy")
  beeps and listens for one command: open an app, call, text,
  directions, or falls through to the Claude app. This is Hey
  Claude's CommandRouter/AppMatcher/ContactMatcher/Comms, ported
  over basically unchanged (package renamed, Hey Claude branding
  swapped for Hey Dumby).
- Driving mode (DrivingMode.kt, new): speaks command results out
  loud with TextToSpeech instead of only showing them. Can be
  switched on by voice ("hey dummy, driving mode on") or, if
  Bluetooth permission is granted, auto-arms when the phone
  connects to something that reports itself as an audio/video
  Bluetooth device (the closest thing Android has to "this is a
  car"), and disarms on disconnect.

Kept Hey Dumby's bundled-in-the-apk speech model (ModelFiles) over
Hey Claude's download-on-first-run one, so the no-network claim on
the landing page stays true and the INTERNET permission goes away.

Still TODO, not done in this pass:
- Settings screen doesn't expose the new toggles yet (driving
  mode, auto-arm, call/text direct, aliases, strict wake). They
  all have working Prefs getters/setters, just no UI.
  Quick Settings tile and the Claude-app fallback aren't wired
  into a Settings toggle either, though they work.
- Not build-tested. No Android SDK in this workspace to compile
  against; needs a real build on Elessar before it installs.
This commit is contained in:
Weishaupt
2026-11-14 02:39:27 +00:00
parent cd41299f49
commit 30f978b40a
16 changed files with 1268 additions and 83 deletions
+28 -9
View File
@@ -4,17 +4,36 @@ plugins {
}
android {
namespace = "space.bloggin.scribe"
compileSdk = 34
compileSdk = 35
defaultConfig {
applicationId = "space.bloggin.scribe"
minSdk = 26
targetSdk = 34
versionCode = 2
versionName = "0.2.0"
ndk { abiFilters += listOf("arm64-v8a", "armeabi-v7a") }
minSdk = 29
targetSdk = 35
versionCode = 3
versionName = "0.3.0"
// Built for a Galaxy Z Fold8. arm64 only, same as Hey Claude was.
ndk { abiFilters += listOf("arm64-v8a") }
}
// The signing key stays on Elessar and is not in this repo. Without it, release
// builds come out unsigned and need signing before they'll install.
val keyFile = file("dumby.jks")
if (keyFile.exists()) {
signingConfigs {
create("release") {
storeFile = keyFile
storePassword = "dumby"
keyAlias = "dumby"
keyPassword = "dumby"
}
}
}
buildTypes {
release { isMinifyEnabled = false }
release {
isMinifyEnabled = false
if (keyFile.exists()) signingConfig = signingConfigs.getByName("release")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -25,7 +44,7 @@ android {
packaging { jniLibs { useLegacyPackaging = true } }
}
dependencies {
implementation("net.java.dev.jna:jna:5.13.0@aar")
implementation("com.alphacephei:vosk-android:0.3.47")
implementation("net.java.dev.jna:jna:5.17.0@aar")
implementation("com.alphacephei:vosk-android:0.3.75@aar")
implementation("androidx.core:core:1.13.1")
}