Hugging FaceMatttAnnouncement
Introducing AnySpeechRecognizer and AnyDecisionModel: Open Models for Speech and Decisions on Apple Platforms
Summary
The post announces AnySpeechRecognizer and AnyDecisionModel, two Swift packages that extend the AnyLanguageModel approach to speech recognition and decision-making on Apple platforms. AnySpeechRecognizer wraps Apple’s SpeechAnalyzer API while allowing developers to swap in alternative speech recognition engines such as NVIDIA’s Parakeet and Alibaba’s Qwen3-ASR, running locally via Core ML. It also adds speaker diarization using NVIDIA’s Streaming Sortformer, which Apple’s framework lacks. AnyDecisionModel answers yes-or-no, multiple-choice, and rating-scale questions by deriving answers from model probabilities rather than generating text, supporting local backends like MLX, Core AI, and llama.cpp, as well as remote services like Jev and Ollama. Both packages download open models from the Hugging Face Hub and run them on device, with performance benchmarks provided for Parakeet models on an M4 Max Mac Studio.
Context
The post introduces two Swift packages that extend the AnyLanguageModel approach to speech recognition and decision-making on Apple platforms, providing familiar Swift APIs with a choice of model backends that run on device.
Approach / What changed
The packages implement Apple’s SpeechAnalyzer API with interchangeable backends (Parakeet, Qwen3-ASR via Core ML) and a decision model API that derives answers from token probabilities instead of text generation, supporting local (MLX, Core AI, llama.cpp) and remote (Jev, Ollama) backends.
Takeaways
AnySpeechRecognizer supports Parakeet and Qwen3-ASR models running locally via Core ML, with speaker diarization via Sortformer, which Apple’s Speech framework lacks.
AnyDecisionModel answers questions using model probabilities rather than text generation, supporting local (MLX, Core AI, llama.cpp) and remote (Jev, Ollama) backends with calibration and rotation debiasing.
Performance benchmarks show Parakeet models achieve word error rates as low as 1.43% on LibriSpeech test-clean when processing files, with live input having higher error rates (e.g., 4.73% for Parakeet v3 live).
FAQ
What models does AnySpeechRecognizer support?
AnySpeechRecognizer supports Apple's built-in Speech framework, NVIDIA's Parakeet variants (v3, Ultra, Unified), and Alibaba's Qwen3-ASR (0.6B and 1.7B). Parakeet models run on a custom Core ML runtime with live input support, while Qwen3-ASR runs on GPU and is better for file transcription.
How does AnyDecisionModel differ from using a language model for decisions?
Instead of generating text, AnyDecisionModel derives answers from the model's token probabilities, providing typed results with confidence values. It supports calibration to correct overconfidence and rotation debiasing to mitigate position bias.
What are the system requirements for these packages?
Both require Swift 6.2+, macOS 26 or iOS 26+. Parakeet and Sortformer runtimes and the MLX backend require Apple silicon. AnyDecisionModel's MLX build tasks need Xcode's Swift 6.4+ and Metal toolchain; Core AI requires Xcode 27 and OS 27 runtime.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.