Skip to content

fix(#1049): lower wakeword detection threshold from 0.80 to 0.65#1064

Merged
lokhor merged 1 commit into
mainfrom
fix/wakeword-lower-threshold
Jun 1, 2026
Merged

fix(#1049): lower wakeword detection threshold from 0.80 to 0.65#1064
lokhor merged 1 commit into
mainfrom
fix/wakeword-lower-threshold

Conversation

@lokhor
Copy link
Copy Markdown
Collaborator

@lokhor lokhor commented Jun 1, 2026

Problem

The 16-frame embedding window (1.28s) is longer than the "Hey Jandal" wake word (~0.8s). Even after the embedding ring flush fix (PR #1063), the classifier window always contains ~6/16 post-speech silence embeddings, making confidence borderline around 0.80.

Fix

Lower WAKE_WORD_DEFAULT_THRESHOLD from 0.80 → 0.65.

This improves recall for short wake words. The STT verification path (lowThreshold=0.50) continues to guard against false positives — any detection in [0.50, 0.65) runs STT to confirm actual speech.

Change

core/voice/src/main/java/com/kernel/ai/core/voice/WakeWordPreferences.kt — one line.

Closes #1049

The 16-frame embedding window (1.28s) is longer than the 'Hey Jandal'
wake word (~0.8s). Even with the embedding ring flush fix (PR #1063),
the classifier window always contains ~6/16 post-speech silence
embeddings, making confidence borderline around 0.80.

Lowering the high-confidence threshold to 0.65 improves recall for
short wake words while the STT verification path (lowThreshold=0.50)
continues to act as a false-positive guard.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Debug APK ready

Download app-debug.apk

Commit: c3f4189 - Build #2061

Updated on each push. Removed when PR is merged or closed.

@lokhor lokhor merged commit cb24f99 into main Jun 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: WakeWordService burns 2h17m CPU overnight — 100% wakelock drains battery to 5%

1 participant