hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel acdf7521fb
iOS keyboard: in-keyboard dictation sends custom vocabulary to Apple Speech as hints (#2413)
What changed
- KeyboardLocalDictation reads Custom vocabulary's active terms when recording
  stops and passes them, with Learn how I type's meant words, to
  DictationCorrections.recognitionHints, as DictationController does in the app.
  Before, the keyboard built its hints with `vocabulary: []`. The same list
  still drives the spelling rewrite after transcription; it is read once, a few
  hundred milliseconds earlier than before.
- README: the hint now reaches in-keyboard Apple Speech too.

Why
- TestFlight build 130 (iPhone 17 Pro Max, iOS 27.2.1): "I added the name
  'Stacey' but it keeps coming back and says Stacy."
- The empty list was an oversight, not a memory or speed choice: #2022 added
  hints to the keyboard when the keyboard didn't apply custom vocabulary at all,
  and #2103 added the list's rewrite to the keyboard a day later without adding
  it to the hints. The hints are at most 100 strings, the same list the
  keyboard already sends for learned fixes.

What it changes (measured on the Mac Studio, macOS 27.2.1, 42 sentences with
names and terms in three voices, 132 listed-term occurrences)
- SpeechTranscriber, the module English uses on an iPhone 17: nothing. Its text
  was identical with no hints, the sentence's own term, or the whole 20-term
  list (0 of 126 clips differ). This change does not fix the report above.
- DictationTranscriber (languages and iPhones without SpeechTranscriber, and
  Two-language dictation's second reading): the listed spelling came out raw
  in 28 of 132 occurrences with the list against 4 without it. With the same
  list, 0 of 182 ordinary dictations (the numbers experiment's sentences in
  Samantha, Reed and Ryan's cloned voice) changed.

Verified: python3 scripts/code-shape.py passes; xcodebuild test on an iPhone 17
Pro simulator (iOS 27.2) on the Mac Studio: 883 tests, 0 failures, 4 skipped.
Not run on a physical iPhone.
2026-11-22 14:05:23 -05:00
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel English typing model: contractions as common as their words, and Hex's chat and tech words (#2408) 2026-11-22 13:40:28 -05:00
AppleLiveTranscriber.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
Info.plist iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
KeyboardInputView.swift iOS keyboard: stop leaking views, capture web views, and emoji indices across shows (#2352) 2026-11-22 06:45:38 -05:00
KeyboardLiveDictation.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
KeyboardLiveTyping.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
KeyboardLocalDictation.swift iOS keyboard: in-keyboard dictation sends custom vocabulary to Apple Speech as hints (#2413) 2026-11-22 14:05:23 -05:00
KeyboardParakeet.swift iOS keyboard: a long dictation goes to Apple's engine instead of Parakeet, which holds it all in memory (#2412) 2026-11-22 13:47:38 -05:00
KeyboardViewController.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
ParakeetLiveTranscriber.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00