AnyDecisionModel and AnySpeechRecognizer (Swift)
Two Swift packages from Hugging Face. AnySpeechRecognizer has the same API as Apple's SpeechAnalyzer, but adds local Parakeet and Qwen3-ASR models and speaker recognition. AnyDecisionModel returns yes/no answers, a choice among given options, or a rating, with a probability.
How to try it
- You need Swift 6.2+ and iOS 26 / macOS 26; the MLX backend and Parakeet need Apple silicon
- Add both packages to Package.swift (AnySpeechRecognizer 0.1.0, AnyDecisionModel 0.6.0) and enable the MLX, CoreAI or Llama trait
- For speech, just replace import Speech with import AnySpeechRecognizer; for decisions, create a DecisionSession and start asking questions
- Don't combine the CoreAI trait with AnySpeechRecognizer, as the dependencies are incompatible; speech has only been tested on macOS 27
Price: free (model licenses vary: CC BY 4.0, Apache 2.0, NVIDIA license)