Swift packages bring speech recognition and decision models to Apple platforms
Brief by TrendCue AI · Dates refer to the original sources.
Mattt announced AnySpeechRecognizer and AnyDecisionModel, Swift packages that let apps use different speech recognition and decision engines. Both can download open models from the Hugging Face Hub and run them on device.
Speech engines and speakers
AnySpeechRecognizer mirrors Apple’s speech API while allowing alternative engines, including Parakeet and Qwen3-ASR. Its speaker diarization module can track overlapping speakers. Mattt also published Core ML conversions; the Parakeet TDT 0.6B v3 model card says its preprocessor is not included.
Testing and limitations
In Mattt’s LibriSpeech tests on an M4 Max Mac Studio, Parakeet v3’s file-mode word error rates were 1.55% on test-clean and 2.78% on test-other. Mattt cautioned that the measurements covered one machine and a few datasets; the package had been tested on macOS 27, not an iPhone. Qwen3-ASR returns final segments rather than live provisional results or word timing.
Decisions without generated text
AnyDecisionModel returns typed answers and probabilities for yes-or-no, choice and rating questions. Its local MLX decision-head backend supports Cloudflare’s Clef-Flash, a model post-trained from Qwen/Qwen3.5-9B. Although Clef-Flash accepts images and video, this backend accepts only text and JSON states; Mattt also warns that confidence reflects probability concentration, not correctness.
Requirements
Both packages require Swift 6.2 or later and macOS 26 or iOS 26 or later. The Parakeet and Sortformer runtimes and the MLX backend require Apple silicon. For now, the AnyDecisionModel CoreAI trait cannot be combined with AnySpeechRecognizer because their swift-huggingface requirements conflict.
Original sources
Original websites and X posts open in a new tab.