Core ML port of
NVIDIA Magpie-TTS Multilingual 357M,
an
autoregressive multi-codebook TTS model over the
Nano-Codec
22 kHz / 1.89 kbps / 21.5 fps
vocoder, quantized to
INT8 weight-only for Apple Silicon.
Core ML INT8 bundle for iOS / macOS. Four compiled .mlmodelc packages with scatter-based KV cache (fully static graph, ANE-friendly).
End-to-end TTS → faster-whisper large-v3 ASR on a held-out sentence per language (Character Error Rate):
1import json
2from pathlib import Path
3import mlx.core as mx
4
5# 1. Tokenize text in your app (Swift) — see speech-swift's KokoroTTS
6# pattern. For Japanese, use Apple's CFStringTokenizer + katakana → IPA.
7# 2. Load the 3 sub-models and run the AR loop.
8from huggingface_hub import snapshot_download
9bundle = Path(snapshot_download("aufklarer/Magpie-TTS-Multilingual-357M-CoreML-8bit"))
10
11# Production usage: see https://github.com/soniqo/speech-swift.
The production Swift integration handles tokenization, the AR loop, KV-cache
management, and audio rendering. This HuggingFace bundle exists for
researchers and SDK developers building atop the MLX weights directly.