Skip to content

fix: surface Apple speech models in onboarding (#354) - #384

Closed
postoso wants to merge 2 commits into
altic-dev:mainfrom
postoso:fix/354-onboarding-apple-models
Closed

postoso wants to merge 2 commits into
altic-dev:mainfrom
postoso:fix/354-onboarding-apple-models

Conversation

@postoso

@postoso postoso commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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.availableModels already admits them. apple-speech runs fully on-device with no download — the true offline fallback. apple-speech-analyzer is 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

  • Add .appleSpeech + .appleSpeechAnalyzer (before the Whisper entries) to both candidate branches; the existing availableModels filter gates them by OS/arch (analyzer excluded < macOS 26).
  • Built-ins show a no-download "Use" button and selection proceeds with no network.
  • Update the "Other" language subtitle to name the no-download Apple Speech option.

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 --strict clean; xcodebuild build succeeds.

Closes #354

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +696 to +697
? [.parakeetTDT, .cohereTranscribeSixBit, .parakeetRealtime, .parakeetTDTv2, .appleSpeech, .appleSpeechAnalyzer, .whisperBase, .whisperSmall]
: [.appleSpeech, .appleSpeechAnalyzer, .whisperBase, .whisperTiny, .whisperSmall, .whisperMedium]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.
@postoso

postoso commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

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.

@postoso postoso closed this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐞 BUG] Onboarding has no offline path — zero-download Apple speech models aren't selectable in setup

1 participant