Neywa-Labs/mlx-audio

A text-to-speech (TTS), speech-to-text (STT) and speech-to-speech (STS) library built on Apple's MLX framework, providing efficient speech analysis on Apple Silicon.

MLX-Audio is a Python library that lets you run audio AI models locally on Apple Silicon Macs (M-series chips). It handles text-to-speech, speech-to-text, speech-to-speech, and music generation, all built on Apple's MLX framework for fast performance.

Key features (from the README):

  • Optimized for Apple Silicon (M1/M2/M3/M4)
  • Supports many model architectures for TTS, STT, STS, and music generation
  • Multilingual support across models
  • Voice customization and cloning
  • Adjustable speech speed
  • Interactive web interface with 3D audio visualization
  • OpenAI-compatible REST API
  • Quantization (3-bit, 4-bit, 6-bit, 8-bit) for reduced memory usage
  • Swift package for iOS/macOS integration

Installation

pip install -U mlx-audio

Or use uv for command-line tools only. For development or the web interface, clone the repo and install with pip install -e ".[dev, server]".

Quick start

  • Command line: mlx_audio.tts.generate --model <model> --text "Hello" --voice Vivian (options for streaming, saving, joining segments, etc.)
  • Python API: Load a model with load_model() and generate speech in a loop.

Supported models (a large list, including):

  • TTS: Kokoro, Qwen3-TTS, Chatterbox, MOSS-TTS, and many more
  • STT: Whisper, Qwen3-ASR, Parakeet, Nemotron, etc.
  • VAD/diarization: Silero VAD, Sortformer, Nemotron 3 Diarization
  • STS: SAM-Audio, DialogueSidon, Liquid2.5-Audio, etc.

Each model has its own README with details. The project also includes a web interface and API server, quantization options, and a Swift package.

Requirements: macOS on Apple Silicon, Python 3.10+.

License: MIT.

Built by Neywa Labs, the company behind the Nativ app.

Related

  • Project
  • Project
  • Project
  • Project