mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Android dictation: decode a prompted dictation again without the prompt when it repeats, is empty or only echoes it What: hexspeech.cpp checks every prompted decode up to 30 s (custom vocabulary, or Labs › Learn from my fixes' words, as Whisper's initial prompt). If it ended at its token limit with no end-of-text and its last 32 tokens fail Whisper's own repetition test (entropy under entropy_thold, 2.4), wrote nothing, or wrote only the prompt's two or more terms, the clip is decoded once more without the prompt, in a fresh state, and that text is used. Labs › Diagnostics' Last dictation says when it happened, why and how long it took (timings grow from 8 to 10 longs: the time of the second decode and the reason). The benchmark's native.cpp takes an optional prompt per list line and mirrors the guard (HEX_NO_GUARD=1 is the decode before it); score.py and generate.py add a prompted-clip check. android/README.md and benchmark/README.md describe it; android/README.md also gets the known limit that a sentence said twice in a row comes out once. Why: a one-word prompt in front of a short clip makes Whisper write the sentence until its token limit, and the retry at 0.2 keeps the prompt. Gate emulator, Hex Preview 2424, sarah.wav (1.6 s) x20 back to back: custom vocabulary "stadium" with the lab off, 9 tenfold and 2 empty (today's builds); the lab's learned station -> stadium, 13 tenfold; no prompt, 0. The host decode of the file repeats on 193 of 288 cuts with "stadium", 0 of 468 without. Desktop drops a prompt echo (gguf_session.rs drop_prompt_echo); Android has found speech by then, so it decodes again. No length rule: on 150 clips of 1.2-7 s with a name, the prompt raised names right from 0-10% to 30-67% at every length and repeated only up to 2.4 s, all of which the guard catches. Verified: on the Studio, ./gradlew :app:testDebugUnitTest :app:assembleDebug (292 tests, 0 failures, including the new Last dictation cases in StripTextTest); the debug APK's libhexspeech.so carries the guard. Benchmark (host build of the app's whisper.cpp, armv8-a): the prompted check fails before the guard (3 of 3 tenfold, score.py exit 1) and passes with it (3 of 3 "Sarah is at the station.", exit 0); the 40 corpus and 30 long clips' texts are byte-identical to dev's native.cpp; the long-clip check is unchanged (59 errors of 1,263 words at both windows, no clip worse, every utterance kept past 30 s). Not yet run on a device or emulator. Removed or replaced: nothing removed. A prompted decode that repeated, came back empty or echoed its prompt used to be inserted as it was; it is now replaced by the unprompted decode. * Android dictation: also decode again a prompted dictation that is one phrase twice in too little audio What: a fourth trigger for #2783's guard, for prompted decodes up to 30 s like the others: the whole text is one phrase of three or more words written two or more times and nothing else, with more words than 4 a second of the decoded audio. Then the clip is decoded once more without the prompt and that text is used. Labs › Diagnostics names it "a phrase written twice". The benchmark's native.cpp mirrors it; score.py adds hint-sarah2 (generate.py now takes a clip's silence before and after), a cut where "Sarah, stadium" writes the sentence exactly twice and stops, and fails a prompted clip above 1.5 times its words (it was twice, which an exact two-copy text passed). Why: on the gate emulator one of 20 pair-learned dictations (a5) wrote "Sarah is at the stadium Sarah is at the stadium." and ended before the token limit, so no trigger fired. The rate condition keeps real repeats out: 40 synthetic clips of a sentence said twice (3.4-4.4 s) ran 1.9-2.9 words a second, the prompt's two-copy loops 4.4-5.6. Without it the trigger would have redone every real repeat written twice (20-22 of 40 per prompt) and turned one of them into a single copy, as the unprompted decode drops a sentence said twice in a row. Verified: on the Studio, ./gradlew --no-daemon :app:testDebugUnitTest :app:assembleDebug (292 tests, 0 failures, the new case in StripTextTest included). Host: the trigger fires on all 7 two-copy loops of the sarah.wav cut grid, on none of 588 finished prompted decodes of the 150 name clips and none of 117 of the 40 real repeats. Benchmark: before the guard all 4 prompted cases repeat (score.py exit 1), with it all 4 come out "Sarah is at the station." (exit 0); corpus and long-clip texts byte-identical to dev's native.cpp; long-clip check unchanged. Removed or replaced: score.py's repeated-clip threshold goes from twice to 1.5 times the words said. |
||
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||