Skip to content

VoiceStudio — MLX-Audio Engine (Apple Silicon)

MLX-Audio (Blaizzy/mlx-audio) wraps 14+ TTS engines — Kokoro, CSM, Dia, Qwen3-TTS, Chatterbox, MeloTTS, OuteTTS, and more — behind a single adapter that runs on Apple's MLX framework. It is Apple Silicon only: the engine is not shipped on Linux, Windows, or Intel Macs, and a stray wheel on those platforms never reports as available (#390).

When to pick it

  • You're on an M-series Mac and want small, fast models tuned for it.
  • You want one of the specific hosted models (Kokoro for small multilingual, CSM for cloning, Qwen3-TTS for voice design, Dia for dialogue, …).

Setup

pip install mlx-audio

Install the package into the Python environment that runs VoiceStudio's backend. This installs the MLX-Audio adapter, not the weights for every curated model. An available engine does not mean CSM is downloaded.

Then select the engine via Model Catalogue (TTS tab → Use) or OMNIVOICE_TTS_BACKEND=mlx-audio.

Model selection

One backend hosts many models. The curated set:

Key Model Niche
kokoro (default) mlx-community/Kokoro-82M-bf16 small multilingual
csm mlx-community/csm-1b-8bit voice cloning
qwen3-tts-base mlx-community/Qwen3-TTS-12Hz-0.6B-Base-8bit voice cloning
qwen3-tts mlx-community/Qwen3-TTS-12Hz-1.7B-VoiceDesign-4bit voice design
dia mlx-community/Dia-1.6B dialogue
chatterbox mlx-community/Chatterbox-TTS-4bit expressive
melotts mlx-community/MeloTTS-English-v3-MLX lightweight VITS
outetts mlx-community/Llama-OuteTTS-1.0-1B-4bit LM-based
voxcpm2 mlx-community/VoxCPM2-8bit 30 languages, 48 kHz studio output (needs mlx-audio 0.4.4+)

Pick a model in the Model Catalogue curated picker (#981) or set OMNIVOICE_MLX_AUDIO_MODEL to either a curated key (kokoro) or any full HF repo id. The env var overrides the persisted UI choice.

OuteTTS voice cloning

OuteTTS reads the reference clip with a Whisper model before it clones the voice. Download Whisper large-v3 Turbo (OuteTTS voice-clone reader, mlx-audio) (mlx-community/whisper-large-v3-turbo-asr-fp16) from Model Catalogue first; without it, generation stops right away and names that entry instead of downloading during synthesis (#2700). The voice built from each clip is kept under outetts_speakers/ in the data folder, so later generations with the same clip skip that step.

First use of CSM

  1. On an Apple Silicon Mac, open Model Catalogue and download CSM 1B (voice cloning, mlx-audio) (mlx-community/csm-1b-8bit). Accept its model licence if prompted and wait for the download to finish.
  2. Select MLX-Audio and CSM (voice cloning) in its curated model picker. Installing or selecting Kokoro does not prepare CSM.
  3. Generate a short clip with a reference voice. The adapter calls mlx_audio.tts.utils.load_model(...) lazily on first synthesis, so the first load can take longer than later clips. Selecting a model alone does not load it into memory.

If CSM still appears unusable, check the backend log for the model-load error and confirm the download is in the cache used by this backend. An exported OMNIVOICE_MLX_AUDIO_MODEL overrides the picker; remove it or set it to csm if it keeps selecting another model.

For a source installation, an optional diagnostic can explicitly fetch and prepare CSM in the same Python environment. After reviewing its licence, run this from the repository root only when you want that download:

uv run --no-sync python -c "from mlx_audio.tts.utils import load_model; load_model('mlx-community/csm-1b-8bit')"

This command can contact Hugging Face and download model files. It uses the shell's Hugging Face cache settings, so pass the same HF_HOME/HF_HUB_CACHE values used by your backend if you customized them; warming a different cache will not repair the app's missing files. Restart the backend after a successful manual preparation and select CSM again. For packaged installations, use the app's model download flow rather than installing into an unrelated system Python.

Behaviour notes

  • Output is 24 kHz mono. Results from models with a different native rate (such as Dia at 44.1 kHz) are resampled before stitching and export.
  • Model errors, including errors after partial audio output, stop generation without retrying in a default voice. Optional inputs are omitted only when the model's callable signature does not accept them; supported voice, reference and language inputs, plus voice-design instructions (instruct), remain in the same request.
  • Select Qwen3-TTS Base (voice cloning) or CSM (voice cloning) in Model Catalogue. Qwen3-TTS Base uses the selected voice's reference audio and transcript. API clients can request model: "mlx-audio" and the saved voice ID after selecting Qwen3-TTS Base. An existing local Qwen3-TTS Base folder is also supported. The MLX adapter runs on Apple Silicon.
  • Voice design (text description → voice) is available through the Qwen3-TTS VoiceDesign model.
  • Which languages work depends on the model you load. Kokoro handles about eight; the rest vary. If Kokoro is handed a language outside its set, the error lists the ones it accepts (#977). Pick one of those, or run the text through a multilingual engine instead.
  • Setting the picker to Auto does not sidestep a refusal. Auto sends no language at all, so a selected voice profile supplies its own saved one (#533). A profile stored as Persian would still be passed to Kokoro and rejected, and the message now points at the profile as the origin (#2156). Edit the profile's language, or choose a supported language directly for that generation.

Platform notes

This engine is exempt from cross-platform parity as a platform-only capability behind explicit opt-in: it exists only where Apple's MLX runtime exists. On any other platform the engine picker shows it unavailable with the reason.

Troubleshooting

  • Unavailable on an M-series Mac: pip install mlx-audio into VoiceStudio's Python environment; in a packaged app build, MLX's native libraries may fail to load — the engine reports unavailable rather than crashing.
  • Other issues: install/troubleshooting.md.

See also: benchmarks.md, languages.md, downloading-models.md, disk usage.

Consecutive chunks with the same native sample rate are resampled together to preserve filter context at chunk boundaries; rate changes start a new group.

Profile language refusals are terminal request errors on both local and remote rendering, including streaming. Electron and web show localized guidance that Auto inherits the profile language; neither silently retries the same refusal.

Kokoro language errors list every language in the installed model’s table. “British English” and en-gb both select its British English voice pipeline. Display names from newer installed Kokoro tables are accepted too, so a language advertised by the error message can be selected without updating a hardcoded map.

For Qwen3-TTS Base, requests to /v1/audio/speech with response_format: "pcm" and stream_format: "audio" can emit audio while the model is generating. Use a saved reference with a transcript and the default speed and duration. The stream is mono, signed 16-bit PCM at 24 kHz.

The optional, manually provisioned CUDA adapter uses model ID qwen3-tts. It is available when faster-qwen3-tts is installed in the backend environment, CUDA is available, and VOICESTUDIO_QWEN_CUDA_MODEL points at a local Qwen3-TTS 0.6B Base checkpoint. Both engines use the same VoiceStudio voice library and speech API.

VoiceStudio's /ws/tts endpoint can also deliver native Qwen Base chunks during generation. The WebSocket keeps its existing mono PCM16 frames and start and done messages. Engines without native streaming, and requests with pacing controls that require buffered generation, still render one sentence at a time.

Markdown source: View on AtomGit·Content from the open-source project om/VoiceStudio