MLX-native speech library for Apple Silicon.
Project description
mlx-speech
[!NOTE] This project wouldn't exist without the inspiration and generous support of the incredible community at linux.do.
Local speech synthesis, editing, and transcription on Apple Silicon, running pure MLX. No cloud, no PyTorch.
mlx-speech is an App Automaton project. The
appautomaton org hosts the code on GitHub
and the converted weights on Hugging Face.
Models
Pre-converted MLX weights are published under the App Automaton Hugging Face
org, appautomaton, and download
automatically on first use. Load by alias or by full repo id — tts.load("fish-s2-pro") and
tts.load("appautomaton/fishaudio-s2-pro-8bit-mlx") are equivalent. Each
model name links to a guide covering behavior, flags, and known limitations.
Text-to-speech
| Alias | Model | Weights |
|---|---|---|
fish-s2-pro |
Fish S2 Pro — dual-AR TTS, voice cloning, emotion tags | int8 |
vibevoice |
VibeVoice Large — hybrid LLM+diffusion TTS, voice cloning | int8 |
longcat |
LongCat AudioDiT — flow-matching diffusion TTS | int8 |
moss-local |
OpenMOSS TTS Local — local-attention multi-VQ TTS | int8 |
moss-ttsd |
MOSS-TTSD — delay-pattern dialogue TTS | int8 |
moss-sound-effect |
OpenMOSS Sound Effect — text-to-sound-effect generation | 4-bit |
step-audio |
Step-Audio-EditX — voice cloning, audio editing | int8 |
| — | DramaBox — Resemble flow-matching diffusion TTS, 48 kHz stereo | local checkpoint¹ |
Speech-to-text
| Alias | Model | Weights |
|---|---|---|
cohere-asr |
Cohere Transcribe — multilingual ASR | int8 |
qwen3-asr-1.7b |
Qwen3-ASR-1.7B — English, Chinese, and mixed Chinese/English ASR | bf16 |
| — | IBM Granite Speech 4.0 1B — runs the original sharded checkpoint from a local path | local checkpoint |
¹ DramaBox MLX weights are not published yet — run it from a local checkpoint
via scripts/generate_dramabox.py (see docs/dramabox.md).
Installation
Requires an Apple Silicon Mac (M1 or later) and Python 3.13+.
pip install mlx-speech
Quick Start
Python:
import mlx_speech
# Text-to-speech
model = mlx_speech.tts.load("fish-s2-pro")
result = model.generate("Hello from mlx-speech!")
# result.waveform: mx.array, result.sample_rate: int
# Voice cloning with emotion tags
result = model.generate(
"[excited] This is amazing!",
reference_audio="reference.wav",
reference_text="Transcript of the reference audio.",
)
# Speech-to-text
asr = mlx_speech.asr.load("qwen3-asr-1.7b")
print(asr.generate("audio.wav").text)
# Local checkpoint paths work anywhere an alias does
granite = mlx_speech.asr.load("models/ibm/granite_4_0_1b_speech/original")
print(granite.generate("audio.wav").text)
# Discover models
mlx_speech.tts.list_models()
mlx_speech.asr.list_models()
CLI:
# Generate speech
mlx-speech tts --model fish-s2-pro --text "Hello!" -o output.wav
# Voice cloning with emotion tags
mlx-speech tts --model fish-s2-pro \
--text "[whisper] Just between us..." \
--reference-audio ref.wav \
--reference-text "Transcript of reference." \
-o cloned.wav
# Step Audio emotion editing
mlx-speech tts --model step-audio \
--reference-audio input.wav \
--reference-text "Transcript." \
--edit-type emotion --edit-info happy \
-o happy.wav
# Sound effect generation
mlx-speech tts --model moss-sound-effect \
--text "rolling thunder with rainfall" \
--duration-seconds 8 \
-o thunder.wav
# Transcribe audio
mlx-speech asr --model cohere-asr --audio speech.wav
mlx-speech asr --model qwen3-asr-1.7b --audio speech.wav --language Chinese
# Local checkpoint paths work anywhere an alias does
mlx-speech tts --model models/fish_s2_pro/mlx-int8 --text "Hello!" -o output.wav
mlx-speech asr --model models/ibm/granite_4_0_1b_speech/original --audio speech.wav
# Discover models
mlx-speech tts --list-models
mlx-speech asr --list-models
mlx-speech --help
Note: The
mlx-speechCLI covers the common path — basic generation, voice cloning, and editing. For advanced controls (sampling temperature, top-p/k, diffusion steps, batch JSONL, duration tuning, etc.) use the scripts inscripts/directly. Each model family has a corresponding script with the full inference surface documented indocs/.
Conversion
To convert upstream source weights yourself:
python scripts/convert/fish_s2_pro.py
python scripts/convert/longcat_audiodit.py
python scripts/convert/vibevoice.py
python scripts/convert/moss_local.py
python scripts/convert/moss_ttsd.py
python scripts/convert/moss_sound_effect.py
python scripts/convert/step_audio_editx.py
python scripts/convert/cohere_asr.py
python scripts/convert/qwen3_asr.py
Development
git clone https://github.com/appautomaton/mlx-speech.git
cd mlx-speech
uv sync
uv run pytest tests/unit/
uv run ruff check .
mlx-speech/
src/mlx_speech/ library code
scripts/ conversion, generation, eval, and audit entry points
models/ local checkpoints (not in git)
tests/ unit, checkpoint, runtime, integration tests
docs/ model-family behavior guides
License
MIT — see LICENSE
Built and maintained by App Automaton.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlx_speech-0.4.2.tar.gz.
File metadata
- Download URL: mlx_speech-0.4.2.tar.gz
- Upload date:
- Size: 289.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e07d2dd269b4c66f9cb4f17243a3b513e00b8285a5785f747036e6a397b264e
|
|
| MD5 |
c67a85b91384a392f5a8485c996138d9
|
|
| BLAKE2b-256 |
7189df247efbda91701a5e7a14b104c91831d26eee7348415f8a1a5f96b296a3
|
Provenance
The following attestation bundles were made for mlx_speech-0.4.2.tar.gz:
Publisher:
publish.yml on appautomaton/mlx-speech
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mlx_speech-0.4.2.tar.gz -
Subject digest:
2e07d2dd269b4c66f9cb4f17243a3b513e00b8285a5785f747036e6a397b264e - Sigstore transparency entry: 1796390411
- Sigstore integration time:
-
Permalink:
appautomaton/mlx-speech@c706121506b6de006c6850ddb3222ef769ce49f1 -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/appautomaton
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c706121506b6de006c6850ddb3222ef769ce49f1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mlx_speech-0.4.2-py3-none-any.whl.
File metadata
- Download URL: mlx_speech-0.4.2-py3-none-any.whl
- Upload date:
- Size: 393.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fbf8b202e1fd668b10d71546b91b193db47ad08df8f19625e3891de2479cb92
|
|
| MD5 |
cbbfc1f9f8ff6ca58e4055864ff3919b
|
|
| BLAKE2b-256 |
fbaebfb596911cb732fe9ec0539489b4342960a0713fde60fd4f236ac0db4ada
|
Provenance
The following attestation bundles were made for mlx_speech-0.4.2-py3-none-any.whl:
Publisher:
publish.yml on appautomaton/mlx-speech
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mlx_speech-0.4.2-py3-none-any.whl -
Subject digest:
9fbf8b202e1fd668b10d71546b91b193db47ad08df8f19625e3891de2479cb92 - Sigstore transparency entry: 1796390534
- Sigstore integration time:
-
Permalink:
appautomaton/mlx-speech@c706121506b6de006c6850ddb3222ef769ce49f1 -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/appautomaton
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c706121506b6de006c6850ddb3222ef769ce49f1 -
Trigger Event:
push
-
Statement type: