Blaizzy/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.

What it solves

MLX-Audio provides a unified, high-performance library for running advanced audio AI models—including text-to-speech (TTS), speech-to-text (STT), speech-to-speech (STS), and music generation—directly on Apple Silicon hardware.

How it works

It leverages Apple's MLX framework to optimize model inference for M-series chips. The library supports a wide range of model architectures, offering features like quantization (3-bit to 8-bit) to reduce memory usage, streaming audio output, and voice cloning. Users can interact with these models through a command-line interface, a Python API, or a built-in web server that includes 3D audio visualization.

Who it’s for

This project is for developers and researchers working on Apple Silicon who need to integrate or experiment with state-of-the-art audio models without relying on cloud-based APIs. It is also suitable for iOS/macOS developers looking to incorporate these capabilities into native applications via the provided Swift package.

Highlights

  • Optimized for Apple Silicon with support for various quantization levels (3-bit, 4-bit, 6-bit, 8-bit).
  • Extensive model support including Whisper, Kokoro, Qwen3-TTS, and many others.
  • Features include voice cloning, speech-to-speech interaction, and music generation.
  • Provides both a Python API and an OpenAI-compatible REST API for easy integration.
  • Includes an interactive web interface with real-time audio visualization.

Related

  • Project
  • Project
  • Project
  • Project
  • Project