Quick start · Models · Examples · Model guides · Hugging Face weights · Website
mlx-speech runs 20 speech model families natively on Apple Silicon in MLX—covering text-to-speech, voice cloning, multi-speaker dialogue, sound effects, live transcription, and forced alignment with no PyTorch or cloud dependency. Published weights download automatically on first use; local checkpoints load offline.
Quick start
Requires an Apple Silicon Mac (M1 or later) and Python 3.13+.
pip install mlx-speech
import mlx_speech
from mlx_speech.audio import write_wav
# Text-to-speech
tts = mlx_speech.tts.load("fish-s2-pro")
result = tts.generate("Hello from mlx-speech!")
write_wav("output.wav", result.waveform, sample_rate=result.sample_rate)
# Speech-to-text
asr = mlx_speech.asr.load("qwen3-asr-1.7b")
print(asr.generate("output.wav").text)
# Forced alignment (character & word timestamps)
aligner = mlx_speech.align.load("models/qwen3_forced_aligner_0_6b/mlx-int8")
for item in aligner.generate("output.wav", "Hello from mlx-speech!", language="en"):
print(f"{item.start_s:.2f}–{item.end_s:.2f}s {item.text}")
mlx-speech tts --model fish-s2-pro --text "Hello!" -o output.wav
mlx-speech asr --model qwen3-asr-1.7b --audio output.wav
mlx-speech tts --list-models
Models
Pass any alias, Hugging Face repo ID, or local directory to tts.load(), asr.load(), align.load(), or --model. Model names open behavior guides.
Text-to-speech, voice cloning, and sound effects (13 families)
| Family | Capabilities | Selector | Weights |
|---|---|---|---|
| Fish S2 Pro | Voice cloning and inline emotion tags | fish-s2-pro |
int8 |
| Fish Audio Drama 3 | 16-speaker scenes, cloning, batching, and infilling (44.1 kHz) | local snapshot | FP8→int8 / BF16, direct² |
| Ming-3.0-tts-tiny | Multilingual cloning, voice design, tags, and podcast (44.1 kHz) | local snapshot | BF16, direct² |
| Breeze TTS 2 | Voice design, instruction direction, cloning, and streaming | local snapshot | BF16, direct² |
| FireRedTTS3 Base | Multilingual zero-shot voice cloning at 24 kHz | fireredtts3-base |
BF16 · direct² |
| dots.tts | Voice cloning and waveform streaming (SOAR & MeanFlow) | dots-tts-soar · dots-tts-mf |
int8 + base |
| VibeVoice Large | Hybrid LLM + diffusion synthesis and voice cloning | vibevoice |
int8 |
| LongCat AudioDiT | Flow-matching diffusion speech synthesis | longcat |
int8 |
| DramaBox | Expressive speech synthesis in 48 kHz stereo | dramabox |
BF16¹ |
| Step-Audio-EditX | Voice cloning and emotion, style, or speed editing | step-audio |
int8 |
| OpenMOSS TTS Local | Local-attention speech synthesis and voice cloning | moss-local |
int8¹ |
| MOSS-TTSD | Multi-speaker conversational dialogue | moss-ttsd |
int8¹ |
| OpenMOSS Sound Effect | Sound effects from text prompts | moss-sound-effect |
4-bit¹ |
Speech-to-text (6 families)
| Family | Capabilities | Selector | Weights |
|---|---|---|---|
| Cohere Transcribe | Multilingual offline transcription | cohere-asr |
int8 |
| Qwen3-ASR-1.7B | English, Chinese, and mixed-language speech | qwen3-asr-1.7b |
int8 · BF16 |
| Confucius4-R2T2 | Real-time streaming transcription, 30 languages | confucius4-r2t2 |
BF16 |
| NVIDIA Nemotron 3.5 ASR Streaming | Cache-aware multilingual streaming transcription | nemotron-asr-streaming |
int8 |
| IBM Granite Speech 4.0 1B | Six-language ASR with a selective-int8 language model | granite-speech-4.0-1b |
int8 |
| Audio8-ASR-Infinite | Unlimited-length streaming ASR, Chinese and English | audio8-asr-infinite |
int8 · BF16 |
Forced alignment (1 family)
| Family | Capabilities | Selector | Weights |
|---|---|---|---|
| Qwen3-ForcedAligner | Character and word timestamps for a known transcript (zh / en) |
local path | BF16 or int8, converted³ |
¹ Companion weights: OpenMOSS models auto-download the MOSS audio codec. DramaBox auto-downloads Gemma 3 12B (4-bit) and optionally RE-USE / SEMamba (denoise_ref=True, NSCLv1 non-commercial).
² Direct upstream snapshots: Download the official Hugging Face release (hf download <repo> --local-dir ...) and pass that local directory to tts.load(). Weights map in RAM with no conversion step or PyTorch (Drama 3 requantizes block-FP8 experts to MLX int8 on load; Breeze TTS 2 also offers scripts/convert/breeze_tts.py --int8; upstream community/non-commercial licenses apply).
³ Offline conversion: Download Qwen/Qwen3-ForcedAligner-0.6B, convert with scripts/convert/qwen3_forced_aligner.py --quant int8, and pass the output folder to align.load(). All source-to-MLX converters live in scripts/convert/ and never add runtime dependencies.
Examples
import mlx_speech
# Voice cloning with inline delivery tags
tts = mlx_speech.tts.load("fish-s2-pro")
clip = tts.generate(
"[excited] This runs entirely on Apple Silicon!",
reference_audio="ref.wav",
reference_text="Exact transcript of ref.wav.",
)
# Real-time streaming ASR (also supported by nemotron-asr-streaming & audio8-asr-infinite)
asr = mlx_speech.asr.load("confucius4-r2t2")
session = asr.stream_session(language="English")
for pcm in microphone: # float32, 16 kHz mono
print(session.feed(pcm).committed)
print(session.finalize().text)
# Offline ASR & programmatic catalog discovery (including shared-repo artifact_subdir)
granite = mlx_speech.asr.load("granite-speech-4.0-1b")
print(granite.generate("speech.wav").text)
mlx_speech.tts.list_models(detailed=True)
# Bounded waveform streaming, emotion editing, and text-to-SFX from the CLI
mlx-speech tts --model dots-tts-soar --text "Streaming audio." --stream -o stream.wav
mlx-speech tts --model step-audio --reference-audio in.wav --reference-text "Hi." --edit-type emotion --edit-info happy -o happy.wav
mlx-speech tts --model moss-sound-effect --text "rolling thunder with rainfall" --duration-seconds 8 -o thunder.wav
Development
git clone https://github.com/appautomaton/mlx-speech.git && cd mlx-speech
uv sync
uv run pytest
uv run ruff check .
Unit tests run offline without checkpoints; real-weight tiers are documented in tests/README.md. Public site source lives in appautomaton.github.io.
License
Code is released under the MIT License. Model weights retain their upstream licenses as noted in each model card and guide.
Built by App Automaton · Thanks to the linux.do community for its inspiration and support.
Metadata
Release files for mlx-speech 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlx_speech-0.6.0.tar.gz | 607.9 kB | With provenance | Details for mlx_speech-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlx_speech-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for mlx_speech-0.6.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / mlx_speech-0.6.0.tar.gz
| Download URL | mlx_speech-0.6.0.tar.gz |
|---|---|
| Size | 607.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f671130d10236369114c7d656bfe5c5b4537a50421f8e0aa46b93a3a4f6e7b9
|
|
BLAKE2b-256 checksum How to use checksums |
2d906843164cd34fbde8343e9c6507a83a3965a8a0cfa652e0948feefb729cd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / mlx_speech-0.6.0-py3-none-any.whl
| Download URL | mlx_speech-0.6.0-py3-none-any.whl |
|---|---|
| Size | 755.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ae21ffac4ab1254f36dec97b0494f0bcd675dc02e8dc9b835c80ff64c109edf
|
|
BLAKE2b-256 checksum How to use checksums |
16ee4718198d4f731efbc107e095f737d41278e9df8ceb511958dc90955abea4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for mlx-speech 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mlx_speech-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.