hex/ios/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 2b5f2ae8d3
iOS Two-language dictation: change language between words neither reading spans (#2533)
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 ae1cdf71 on that simulator today.
- python3 scripts/code-shape.py --check passes.

Not verified on an iPhone.
2026-11-23 11:40:58 -05:00
..
acknowledgements.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
build-and-test.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
dictation.md iOS Two-language dictation: change language between words neither reading spans (#2533) 2026-11-23 11:40:58 -05:00
keyboard.md iOS keyboard: dictate in the keyboard while Hex's own speech model isn't installed (#2511) 2026-11-23 04:10:58 -05:00
onboarding-and-setup.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
releasing.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
settings-and-home.md iOS Settings: Home refreshes again while it shows, Into field falls back to the words over the keys, the speech model card lands on its row, docs match (#2471) 2026-11-22 23:00:12 -05:00
typing-logs.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
verification.md iOS Settings: Home refreshes again while it shows, Into field falls back to the words over the keys, the speech model card lands on its row, docs match (#2471) 2026-11-22 23:00:12 -05:00