File size: 3,288 Bytes
91291bf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | ---
license: other
license_name: nvidia-open-model-license
license_link: https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
base_model: nvidia/magpie_tts_multilingual_357m
pipeline_tag: text-to-speech
tags:
- gguf
- ggml
- tts
- text-to-speech
- magpie-tts.cpp
- localai
language:
- en
- es
- de
- fr
- it
- pt
- hi
- vi
- ko
- ar
---
# magpie-tts.cpp GGUF
**Brought to you by the [LocalAI](https://github.com/mudler/LocalAI) team**, the folks behind LocalAI, the open-source AI engine that runs any model (LLMs, vision, voice, image, video) on any hardware, no GPU required.
Self-contained GGUF builds of NVIDIA's [Magpie TTS Multilingual 357M](https://huggingface.co/nvidia/magpie_tts_multilingual_357m) for [magpie-tts.cpp](https://github.com/mudler/magpie-tts.cpp), a from-scratch C++17/[ggml](https://github.com/ggml-org/ggml) inference engine. Each file bundles the TTS model, the [NanoCodec](https://huggingface.co/nvidia/nemo-nano-codec-22khz-1.89kbps-21.5fps) decoder, the tokenizer and the G2P dictionaries: one file, no Python, PyTorch, NeMo, or CUDA toolkit at inference.
5 voices (Aria, Jason, John, Leo, Sofia), 22.05 kHz mono, 9+ languages (en, es, de, fr, it, pt-BR, hi, vi, ko, ar variants; zh/ja not yet supported by the C++ tokenizer).
## Files
| File | Size | Notes |
|---|---|---|
| magpie-tts-multilingual-357m-f32.gguf | 1294 MB | lossless, parity reference (teacher-forced replay max abs diff 3.6e-5 vs NeMo) |
| magpie-tts-multilingual-357m-f16.gguf | 784 MB | ASR round-trip exact |
| magpie-tts-multilingual-357m-q8_0.gguf | 624 MB | recommended; ASR round-trip exact, ~1.6x faster decode than f32 |
| magpie-tts-multilingual-357m-q6_k.gguf | 584 MB | ASR round-trip exact |
| magpie-tts-multilingual-357m-q5_k.gguf | 562 MB | ASR round-trip exact on the smoke set; larger logit drift, expect degradation on hard material |
| magpie-tts-multilingual-357m-q4_k.gguf | 541 MB | smallest; same caveat as q5_k |
Quantization is selective (only matmul weights; codec and embeddings stay f32). Full drift numbers and methodology: [docs/quantization.md](https://github.com/mudler/magpie-tts.cpp/blob/main/docs/quantization.md).
## Usage
```bash
git clone --recursive https://github.com/mudler/magpie-tts.cpp
cd magpie-tts.cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
./build/examples/cli/magpie-cli say \
--model magpie-tts-multilingual-357m-q8_0.gguf \
--text "Hello world!" --lang en --speaker Aria --output hello.wav
```
## Performance
About 66x faster than the NeMo reference pipeline on the same CPU (Ryzen 9 9950X3D: 12.1 s vs 805.7 s for ~4 s of speech, f32). Honest methodology and caveats: [benchmarks/BENCHMARK.md](https://github.com/mudler/magpie-tts.cpp/blob/main/benchmarks/BENCHMARK.md).
## License
Inference code: MIT. Model weights (these GGUFs): [NVIDIA Open Model License](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/). Model and codec by NVIDIA (NeMo team).
---
Built by the [LocalAI](https://github.com/mudler/LocalAI) team. If you want to run text to speech (and LLMs, vision, voice, image, and video models) locally on any hardware with an OpenAI-compatible API, [give LocalAI a star](https://github.com/mudler/LocalAI).
|