# Repository Briefing: Neywa-Labs/mlx-audio
> Source: https://repoforai.com/repo/Neywa-Labs/mlx-audio (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Neywa-Labs/mlx-audio
- **Official Docs / Website**: https://www.neywalabs.ai
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.6.9 (2026-11-30) — https://github.com/Neywa-Labs/mlx-audio/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Local AI, Self-Hosted, CLI, API, GPU
- **Momentum**: 8,373 ★ total (+4 24h / +32 7d) · 813 forks
- **Topics**: `apple-silicon`, `audio-processing`, `mlx`, `multimodal`, `speech-recognition`, `speech-synthesis`, `speech-to-text`, `text-to-speech`, `transformers`
- **When to Use**: Best for: Apple Silicon teams building local transcription, narration, or interactive voice workflows that need control over audio handling and model choice. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Runtime: Python 3.11+ and MLX 0.32.4+ target local inference on Apple Silicon
- Integration: The Python TTS generator returns waveforms as `mx.array`; a CLI and an OpenAI-compatible REST API serve different integration needs
- Streaming TTS: `--stream` emits audio during generation; add `--save` to persist it
- Streaming ASR: Voxtral Realtime has a 4-bit checkpoint; English Nemotron lists 80/160/560/1120 ms streaming modes
- Quantization: Kokoro offers BF16 and 8-, 6-, and 4-bit weights for testing quality against memory use
- Media generation: MiniMax Music 3 produces 44.1 kHz stereo, while HunyuanVideo-Foley generates synchronized 48 kHz effects from video
```

## Quick Start / Clone
```bash
pip install -U mlx-audio
```
