hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 8583160e68
iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337)
A TestFlight tester (build 120, iPhone 15 Pro Max, iOS 26.6) had Experiments ›
Multilingual model (Parakeet) on: voice input "started demanding Set up", then
sat at "Downloading 632.2 MB · Wi-Fi recommended" with no movement.

Why it blocked: with the experiment on and the dictation language one of
Parakeet Ultra's 25 (English included), Ultra became Hex's engine at once,
before it was downloaded. Hex's phase stayed on preparing (or failed, which
shows Set up) for the whole 632 MB download and the first Core ML compile, and
the keyboard's Dictate and Hex key opened Hex for it whether or not the model
was there, so nothing dictated anywhere until it finished.

Why it sat still: the download ran in prepare() on a foreground URLSession,
one 594 MB encoder file, shown only as a bar at 70% scale under a label that
never changed. Leaving Hex (the keyboard's handoff sends you back to the app you
type in) or Auto-Lock suspends it; on return a dead connection showed nothing
for up to 60-90 s, then failed to Set up.

What changed:
- Until Ultra is ready, Hex and the keyboard dictate with the engine they use
  with the experiment off. ParakeetUltraDownload (new) downloads beside it and
  ParakeetUltraTranscriber.prepare only loads (throws notDownloaded otherwise).
  A first load (Core ML's compile) runs beside the usual engine
  (DictationController.loadMultilingualParakeetBeside) and switches to Ultra
  when loaded; launches load Ultra directly only once downloaded and compiled
  for this iOS (multilingualStep). Where V2 dictates and leaves no room
  (English before iOS 26), Ultra takes V2's place for that load.
- The keyboard opens Hex for the experiment only once Hex has loaded it
  (MultilingualParakeetSettings.isModelReady in the App Group, set after a
  load, cleared while missing, set aside or off).
- The download shows bytes ("Downloading the multilingual model: 123.4 MB of
  632.2 MB" with a bar) on home and under the switch; resumes every file from its
  .partial (launch, retry, return to the front); a drop or 20 s without bytes
  tries again after 2, 4, 8, 16, 30 s, starting over whenever it got further; in
  the background it waits and picks up at once on return (fresh connection after
  25 s away). After 6 fruitless tries, a refused request or a full iPhone it says
  what happened in plain words with Try again and Turn off.
- A failed Ultra load or a load that ended Hex (ParakeetLoadGuard) falls back
  to the usual engine and says so with Try again (no longer only by turning the
  switch off, which deletes the 632 MB).
- A launch deletes a leftover download only when the switch is stored as off
  (isTurnedOff), not when the App Group reads empty (a launch before the first
  unlock would have deleted a good model). Turning it off now stops the download
  and waits for it before deleting.
- Removed: ParakeetUltraTranscriber.downloadDetail, its .downloadFailed error
  and the download/StallWatch inside its prepare (replaced by the above);
  strings "Downloading %@ · Wi-Fi recommended" and the old switch detail.
  New strings have zh-Hans. README describes the experiment's new behaviour.
- DEBUG builds read HEX_ULTRA_MODEL_BASE to download from a stand-in server.

Verified:
- xcodebuild test, iPhone 17 Pro Max iOS 26.5 simulator on the Mac Studio:
  753 tests, 0 failures, 3 skipped (new cases in DictationControllerTests:
  resume from .partial with Range, drop + stall retries, a moving download never
  running out of tries, 503 x6 / 404 failures with their words, stop before
  delete, keyboard flag, stored-off rule, multilingualStep).
- iPhone 15 Pro Max iOS 26.5 simulator, experiment on, a local stand-in server
  (Range, throttled, drop/stall switches): Dictate stayed available with the
  usual engine (V2 here; the sim has no Apple Speech) while the status counted
  MB; a dropped connection said "Trying again in 1 s" and resumed with Range; a
  20 s stall said so and resumed; Hex killed mid-download resumed from the
  partial at relaunch; backgrounded with the connection cut, it resumed at once
  on return; after a kill the resumed download from real Hugging Face finished
  from a partial and passed the hashes; Ultra loaded beside and took over (setup
  sheet "English · Parakeet Ultra", keyboard flag set); a forced load guard
  showed the failure with Try again, which loaded Ultra; deleting the model with
  the flag set cleared it at launch and downloaded again; the keyboard logged
  "multilingual model on, Dictate opens Hex" only when ready (else the sim's own
  "speech model missing" reason) and its Hex key went straight to recording
  instead of the download screen; turning it off deleted the folder and cleared
  the flag; with it off nothing shows or downloads.
- Not verified: a real iPhone, a real slow or flaky network, iOS's own
  suspension timing, the V2-replacement path (sims report no memory limit), and
  real audio (the Studio has no microphone).
2026-11-22 02:25:14 -05:00
..
Assets.xcassets iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
zh-Hans.lproj iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AcknowledgementsView.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
AppleSpeechTranscriber.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
AppShortcuts.xcstrings iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AudioBackend.swift iOS: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05:00
ContentView.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
CustomVocabularyEditor.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DictationController+Engine.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
DictationController+LaunchFixtures.swift iOS: Settings and the setup sheet say what needs Full Access (#2304) 2026-11-21 21:35:58 -05:00
DictationController.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS keyboard: optional number row on iPhone (Settings › Keyboard › Number row) (#2327) 2026-11-22 01:32:20 -05:00
HexIntents.swift feat(ios): polish iPhone keyboard dictation, warm sessions, and Live Activity (#574) 2026-10-30 23:35:45 -07:00
HexLinks.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
HEXMobile.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
HEXMobileApp.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardPreviewHost.swift ios: give the dictation bar's top row 44 pt hit areas (#2258) 2026-11-21 16:37:47 -05:00
KeyboardSetup.swift iOS: Settings and the setup sheet say what needs Full Access (#2304) 2026-11-21 21:35:58 -05:00
KeyboardSpeechPreparation.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
LanguageSettingsRows.swift iOS: Languages hint says to slide right away to switch, hold first for the cursor (#2269) 2026-11-21 17:23:41 -05:00
LiveActivityCoordinator.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
Localizable.xcstrings iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
Onboarding.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnboardingPieces.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
OnboardingProgress.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnDeviceSpeechTranscriber.swift iOS: dictate Latin American Spanish with Latin America's model, and keep a picked variant when the keyboard switches (#2193) 2026-11-21 09:53:34 -05:00
ParakeetTranscriber.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
ParakeetUltraDownload.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
ParakeetUltraModel.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
ParakeetUltraTranscriber.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift iOS keyboard: optional number row on iPhone (Settings › Keyboard › Number row) (#2327) 2026-11-22 01:32:20 -05:00
SettingsPages.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
SpeechEngineChoice.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TranscriptCleanup.swift fix(labs): Apple Intelligence cleanup never pastes an answer or a preamble (#2212) 2026-11-21 13:43:24 -05:00
TranslateDictationRow.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TranslationSessionHost.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TypingInsightsView.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
TypingLogsView.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00