mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Two-language dictation (Experiments) reads one recording in two languages and
keeps, piece by piece, the more confident reading. TwoLanguageMerger could
only change language where both readings end a word within 150 ms. Where the
language really changes, the reading that can't follow it hears the speech as
a few long garbled words or none, so the two rarely end a word together
there. The speech on both sides of the change then fell in one piece, which
one language won whole, dropping the other's words. Found while looking into a
build 147 report ("switch to my native language and it would remove all my
English"); the same merge serves the Mandarin-with-English case a build 121
tester reported.
- cutPoints also cuts at any word end of one reading that no word of the
other spans by more than the 150 ms tolerance either side, so no word of
either reading is cut in half there. Scoring, the switch cost and the seam
rules are unchanged.
- TwoLanguageMergeTests: a case with an English stretch and a Chinese one
that never end a word together (times shaped on Apple's own readings); the
existing ten cases are unchanged.
- ios/docs/dictation.md: the new cut, and that the switch does nothing for a
language Apple reads only with DictationTranscriber (Ukrainian, Czech,
Polish, Russian, Hebrew, Dutch), which is unchanged.
Verified:
- Apple's SpeechTranscriber on macOS 27.2.1, en-US and zh-CN readings of a
Samantha-then-Tingting clip (19.5 s of English, then Chinese), merged by
this file: dev kept 48-51 of 73 English words in two of three runs in
either order (72 in the third); with this change 73 of 73 in all six, and
23 of 23 Chinese characters throughout. Single-language clips merge to the
same text as before.
- HEXMobile suite on an iPhone 17 Pro iOS 27.2 simulator (Mac Studio): 974
tests, TwoLanguageMergeTests all pass; 5 failures, all in
LiveDictationTests (testATapOnTheWordsFinishesTheDictationAsDoneDoes,
testOnlyAKeysTapAfterTheWordsHaveComeInCounts), which fail the same way on
unmodified dev
|
||
| .. | ||
| acknowledgements.md | ||
| build-and-test.md | ||
| dictation.md | ||
| keyboard.md | ||
| onboarding-and-setup.md | ||
| releasing.md | ||
| settings-and-home.md | ||
| typing-logs.md | ||
| verification.md | ||