
Hugging Face Blog
· 1 min read
Introducing AnySpeechRecognizer and AnyDecisionModel: Open Models for Speech and Decisions on Apple Platforms
Language models can do a lot. They write, summarize, translate, and call tools. But they're only a small part of what machine learning can do.
Say a customer calls your support line. First, you want to know what they said (speech recognition). Then, you want to decide where to send them (decision). You could hand both to a language model, but there are models built for each that are better, faster, and less expensive.
In our AnyLanguageModel 1.0 recap, we looked at a year of local and hosted models in Swift. With AnyLanguageModel and swift-huggingface now on their 1.x releases, we're extending the same approach to speech and decisions: familiar Swift APIs with a choice of model.
Today we're announcing two packages:
- AnySpeechRecognizer implements Apple's new speech-to-text API with a choice of recognition engine, including NVIDIA's Parakeet and Alibaba's Qwen3-ASR running locally on Core ML, and adds speaker diarization to track who speaks when.
- AnyDecisionModel answers yes-or-no, multiple-choice, and rating-scale questions with typed results and probabilities. It derives each answer from the model's probabilities instead of generating text, using a model on your device with MLX, Core AI, or llama.cpp, or a decision model from Jev or Ollama.
Both packages can download open models from the Hugging Face Hub and run them on device.
AnySpeechRecognizer
Computers have been transcribing speech for decades,
and in the past few years, they've gotten very good at it.
Apple platforms already have an API for it.
macOS 26 and iOS 26 introduced SpeechAnalyzer,
Apple's new speech-to-text API.
You add modules such as SpeechTranscriber and SpeechDetector to an analyzer,
give it a file or a stream of audio buffers,
and read results from async sequences as they arrive.
AssetInventory installs the models,
so your app decides when downloads happen.
It's a well-designed API, but the only engine behind it is Apple's. AnySpeechRecognizer keeps the API and lets you choose the engine:
Original source
This story was published by Hugging Face Blog. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on huggingface.co


