Skip to content

fix(app): hide Apple Speech provider on x86_64 builds#69

Merged
missuo merged 1 commit into
missuo:mainfrom
erning:fix/hide-apple-speech-on-x86
Apr 10, 2026
Merged

fix(app): hide Apple Speech provider on x86_64 builds#69
missuo merged 1 commit into
missuo:mainfrom
erning:fix/hide-apple-speech-on-x86

Conversation

@erning

@erning erning commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Hide the "Apple Speech (On-Device)" ASR option on x86_64 builds. SpeechTranscriber (macOS 26+) cannot run on x86_64: Intel Macs max out at macOS 15, and Rosetta processes on Apple Silicon cannot load the on-device speech assets — every locale reports "Not supported for this language".
  • Drop the apple-speech cargo feature from the Koe-x86 build script.
  • Add apple-speech to the feature-gated supported_providers() list in model_manager.rs, so the wizard can query it at runtime — mirroring the existing MLX / sherpa-onnx pattern.

Changes

  • koe-core/src/model_manager.rs: include "apple-speech" in supported_providers() behind #[cfg(feature = "apple-speech")]
  • KoeApp/project.yml: remove apple-speech from Koe-x86 cargo features
  • KoeApp/Koe/SetupWizard/SPSetupWizardWindowController.m: gate the Apple Speech menu item on both @available(macOS 26.0, *) and supportedLocalProviders

Test plan

  • make build on Apple Silicon (macOS 26+) — Apple Speech option visible in Setup Wizard
  • make build-x86_64 — Apple Speech option hidden in Setup Wizard
  • cargo check --manifest-path koe-core/Cargo.toml (default features) passes
  • cargo check --manifest-path koe-core/Cargo.toml --no-default-features --features "sherpa-onnx" passes

SpeechTranscriber (introduced in macOS 26) never runs on x86_64: Intel
Macs cannot upgrade past macOS 15, and a Rosetta process on Apple
Silicon cannot load the on-device speech assets. The Setup Wizard
previously still offered "Apple Speech (On-Device)" on x86_64 builds
and then reported "Not supported for this language" for every locale.

Drop the apple-speech cargo feature from the Koe-x86 build, and gate
the wizard entry on both the runtime macOS check and the feature list
returned by koe-core — mirroring the MLX/sherpa-onnx pattern.
@missuo missuo merged commit c33f39d into missuo:main Apr 10, 2026
@erning erning deleted the fix/hide-apple-speech-on-x86 branch April 10, 2026 05:43
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.

2 participants