Repository navigation
Conversation
Onboarding's voice-model step only offered download-required models (Parakeet/Cohere/Whisper), so a user on a restricted network where the HuggingFace download is blocked had no way to finish setup. The built-in Apple speech models were never in the onboarding candidate list, even though SpeechModel.availableModels already admits them. - Add .appleSpeech and .appleSpeechAnalyzer to both onboarding candidate branches; the existing availableModels filter gates them by OS/arch (appleSpeechAnalyzer is macOS 26+; appleSpeech is universal). - Both are isInstalled == true, so the picker shows a no-download "Use" button and selection proceeds via ensureAsrReady with no network. - Update the "Other" language subtitle to surface the no-download Apple Speech option for discoverability.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f67a7a476b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ? [.parakeetTDT, .cohereTranscribeSixBit, .parakeetRealtime, .parakeetTDTv2, .appleSpeech, .appleSpeechAnalyzer, .whisperBase, .whisperSmall] | ||
| : [.appleSpeech, .appleSpeechAnalyzer, .whisperBase, .whisperTiny, .whisperSmall, .whisperMedium] |
There was a problem hiding this comment.
Preserve existing Whisper onboarding choices
Adding both Apple models before the Whisper entries makes the existing onboardingAlternativeModels.prefix(3) rendering truncate options that were previously reachable. For example, on Intel Macs the recommended model is still whisperBase, so the alternatives become Apple Speech, Apple Speech Analyzer, Whisper Tiny, Whisper Small, and Whisper Medium, but only the first three are shown; on macOS 26 this removes Small and Medium from onboarding rather than only adding the Apple fallback. Please either raise/remove the cap or order/group these so the existing Whisper alternatives remain selectable.
Useful? React with 👍 / 👎.
…ltic-dev#354) PR altic-dev#384 inserted .appleSpeech/.appleSpeechAnalyzer ahead of the Whisper entries in onboardingModelOptions, but the onboarding "More options" list renders onboardingAlternativeModels.prefix(3). The fixed cap of 3, now fed a longer list, evicted previously-reachable Whisper alternatives: - Intel, macOS <26: Whisper Medium dropped - Intel, macOS 26+: Whisper Small + Medium dropped - Apple Silicon "Other", macOS 26+: Whisper Small dropped Raise the cap to 5 — the exact maximum alternatives-list length any platform/language branch produces (Intel + macOS 26: Apple Speech, Apple Speech Analyzer, Whisper Tiny/Small/Medium). prefix(5) truncates nothing, so both Apple offline options AND every previously-selectable Whisper option stay visible across all branches. Reordering alone can't satisfy this: with up to 5 distinct must-show items, no cap of 3 keeps both Apple and all prior Whisper visible.
|
Superseded by 1.6.0. The new Apple Speech voice engine option with no-download, language-aware setup covers what this PR was doing for #354 (making the zero-download Apple speech models selectable during onboarding). Closing in favor of the shipped version. Thanks for getting it in. |
What
Adds the built-in Apple speech models (Apple ASR Legacy, Apple Speech for macOS 26+) to the onboarding voice-model picker. Previously onboarding only offered download-required models (Parakeet/Cohere/Whisper), so a user on a restricted network where the HuggingFace download is blocked could not complete setup.
Why
The two Apple models were absent from the hardcoded onboarding candidate list even though
SpeechModel.availableModelsalready admits them.apple-speechruns fully on-device with no download — the true offline fallback.apple-speech-analyzeris an on-device OS API (macOS 26+) but may fetch locale speech assets on first use, so it is not guaranteed zero-download; both are valid options, gated by OS/arch.How
.appleSpeech+.appleSpeechAnalyzer(before the Whisper entries) to both candidate branches; the existingavailableModelsfilter gates them by OS/arch (analyzer excluded < macOS 26).Notes
On Apple Silicon the Apple models surface under "More options" (via the "Other" language path). Surfacing them in the default flow / prominently on a download failure is a possible follow-up.
Verification
swiftlint --strictclean;xcodebuild buildsucceeds.Closes #354