mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Since #2566 keeps the speech model loaded between dictations, every decode reused one whisper_state. A short dictation sizes the encoder window to its speech (<= 512 frames), but the state still held the encoder output of an earlier, longer dictation past that window's end, and cross-attention read it. So a short dictation after one over 8 s could come out differently, even in another language. Each decode now creates its own whisper_state (about 3 ms on the emulator) and frees it after; the weights stay loaded. Verified: - Harness on the emulator (app's whisper.cpp, small, 4 threads, the app's window rule, identical PCM): 40 benchmark clips each in its own language, after a long English clip. Shared state: 7 of 40 texts changed after enl0, more after enm3 (e.g. "Vi møtes på station imon" -> "Vi møtes posta shown imon"). Fresh state: 0 of 80 changed against a fresh process; mean 517 ms against 512 ms. - In the app (debug, dictation language Norsk, mic injection): before, all 5 Norwegian clips changed after one long English dictation ("Vi møtes posta show lemon"); after, the after-long texts match the fresh ones within the injection's run-to-run noise. - testDebugUnitTest passes. |
||
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||