mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
On iOS 26 the keyboard transcribes inside itself with Apple Speech, whatever Hex uses. When Hex dictates with Parakeet (an English iPhone without SpeechTranscriber, or a cached Parakeet model), onboarding and home said Ready while the keyboard's Apple Speech model wasn't there, and the first Hex key tap said "Open Hex to download English." KeyboardSpeechPreparation (owned by ContentView, started at launch) prepares the keyboard's engine: - Hex dictates with Apple Speech: Hex's model is the same one, so it follows Hex's. - Otherwise it resolves the keyboard's language (AppleSpeechLanguages, as the keyboard does) and installs it with AppleSpeechAssets.install, the keyboard's own call, which also clears keyboardNeedsHex. - Apple has no model for it on this iPhone, or Speech lists nothing: it marks keyboardNeedsHex, so the Hex key opens Hex (which dictates with its own model) from the first tap instead of after a failed one. Re-marked at each launch, as the mark lasts a day. - A failed download (connection) shows on onboarding with Try again. Why not have the keyboard use Hex's Parakeet: it can't load within a keyboard extension's memory limit, and handing every dictation to Hex leaves the app being typed in each time. In-keyboard Apple Speech stays the path, with the handoff only where Apple has no model. Onboarding's model stage combines both (OnboardingModel.combine): ready only when both are, a failure first, fractions averaged only when the keyboard actually downloads. Home's status line and the setup sheet's Speech model row count it the same way. Verified: xcodebuild test, iOS 27.2 simulator: 386 tests, 0 failures, 1 skipped (new: the combine rules). In the simulator (no Apple Speech assets: "not subscribed to assistant.en_US") it marks the handoff and onboarding goes on to Parakeet's Ready; a real iPhone must confirm the Apple Speech download path. |
||
| .. | ||
| Fixtures | ||
| AutocorrectEngineTests.swift | ||
| CleanupTaggerTests.swift | ||
| CustomVocabularyTests.swift | ||
| DictationControllerTests.swift | ||
| DictationLearningTests.swift | ||
| DotScopeTests.swift | ||
| EmojiSuggesterTests.swift | ||
| FullKeyboardEngineTests.swift | ||
| HexKeyGestureTests.swift | ||
| KeyboardBridgeTests.swift | ||
| KeyboardLayoutTests.swift | ||
| ShiftStateMachineTests.swift | ||
| SwipeDecoderTests.swift | ||
| TranscriptCleanupTests.swift | ||
| TypingLogTests.swift | ||