Neywa-Labs/mlx-audio
MLX inference SDK for local speech and audio pipelines on Apple Silicon
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
MLX-Audio is a Python inference SDK for Apple Silicon, with model implementations organized by task rather than a single model or a remote API backend. The TTS path takes a model ID such as mlx-community/Qwen3-TTS-12Hz-0.6B-CustomVoice-8bit through mlx_audio.tts.utils.load_model; model.generate(...) then yields results containing the waveform as an mx.array. STT has a task-specific entry point, mlx_audio.stt.generate.generate_transcription, whose result exposes .text.
The package requires Python 3.11+ and MLX 0.32.4+, and declares huggingface_hub, miniaudio, NumPy, and SciPy among its dependencies. Implementations live in task-specific model trees such as mlx_audio/tts/models/ and mlx_audio/sts/models/. The CLI is useful for scripting and direct playback, while the OpenAI-compatible REST API gives separate client processes an HTTP integration path. Neither that protocol nor the shared loaders make all model options interchangeable: voice design, reference audio, batching, and streaming depend on the selected implementation.
Key Capabilities & Differentiators
For TTS, Kokoro offers preset voices at several weight precisions, Qwen3-TTS covers multilingual custom voices and voice design, and ZONOS3-Mini combines multilingual voice cloning with 44.1 kHz streaming. The CLI can play output or save it; segmented generations are written as numbered WAV files by default, and --join_audio combines them. With --stream, saving requires --save.
On the recognition side, Distil-Whisper and Qwen3-ASR provide different language coverage, Qwen3-ForcedAligner supplies word-level alignment, and Voxtral Realtime has a 4-bit streaming checkpoint. English Nemotron exposes 80/160/560/1120 ms streaming modes; those settings are not end-to-end latency measurements. STS spans audio processing and interaction: DialogueSidon separates and restores two-speaker dialogue, while Haru-4B supports full-duplex speech dialogue. Music and video-to-audio are separate paths, including 44.1 kHz stereo output from MiniMax Music 3 and 48 kHz video-synchronized effects from HunyuanVideo-Foley.
Trade-offs & Limitations
Compared with ElevenLabs for TTS or a hosted Whisper API for transcription, MLX-Audio gives you local control over recordings, weights, and model selection. The trade-off is that you own checkpoint distribution, service availability, capacity planning, and client compatibility. If you only need transcription, the broader SDK matters only if you plan to use capabilities such as alignment or streaming ASR. The macOS Apple Silicon target also makes it a poor default for teams standardized on Linux/CUDA deployment.
Quantized checkpoints give you room to trade memory against output quality, but there is no single memory or latency figure for the SDK. For a 16 GB Mac, start with a compact checkpoint and measure peak unified-memory use, time to first audio or partial transcript, and throughput at your expected input lengths and concurrency. Include other resident models in the test if STT and TTS run together. The code is MIT-licensed; check weight terms and reference-voice permissions separately.
Hardware & Deployment Guide
Use an Apple Silicon Mac running macOS with Python 3.11+. Install with pip install -U mlx-audio or use uv tool install --force mlx-audio --prerelease=allow for the CLI. For source development or the web interface, use pip install -e ".[dev, server]". Set up the selected checkpoints and auxiliary dependencies ahead of any offline run; Kokoro, for example, uses misaki for text processing, with language extras for Japanese or Mandarin. Start with a CLI smoke test, then validate the REST endpoints and streaming behavior the intended clients need.
Recent releases address specific execution paths: v0.6.7 caches pre-scaled Whisper cross-attention keys and defers STT model-package imports until use; v0.6.8 evaluates Nemotron array caches before moving them across threads; v0.6.9 overlaps Moonshine decoder steps with async_eval and folds DeepFilterNet GRU biases before loading weights. These changes are model-specific. Pin the package version and checkpoint revision, then regression-test the actual combination you plan to ship.
mx.array; a CLI and an OpenAI-compatible REST API serve different integration needs--stream emits audio during generation; add --save to persist itApple Silicon teams building local transcription, narration, or interactive voice workflows that need control over audio handling and model choice.
Your deployment must run on Linux/CUDA, you want a fully managed API, or your target model mix has not met memory and latency requirements on the Macs you plan to use.
Quick Start & Installation
pip install -U mlx-audio
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mlx-audio ★ | 8.4k | +32 | Python | MIT | MLX inference SDK for local speech and audio pipelines on Apple Silicon |
| moonshine | 11.7k | +48 | C++ | — | On-device C++ SDK for live transcription, intent recognition, and speech synthes |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| RealtimeSTT | 10.3k | +11 | Python | Apache-2.0 | Local streaming speech-to-text: a Python SDK and FastAPI service for low-latency |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Neywa-Labs/mlx-audio.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mlx-audio
Should I integrate through Python or REST?
mlx_audio.tts.utils.load_model when you need direct access to the generated waveform as an mx.array, or mlx_audio.stt.generate.generate_transcription when you need transcription text in Python. Use the OpenAI-compatible REST API for a separate client process, but validate that client's required endpoints, request fields, and streaming behavior before switching.How should I size a 16 GB Mac for MLX-Audio?
Can I self-host it in a commercial product?
When is it a better fit than ElevenLabs or a hosted Whisper API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy