Views
No views yet
magpie_tts_multilingual_357m
(Arabic, German, English, Spanish, French, Hindi, Italian, Japanese, Korean,
Portuguese, Vietnamese, Chinese) plus Swahili (Kiswahili) — added by a
community team without regressing any of the original twelve.⚠️ Community model. Swahili support was added by the community and is not provided or endorsed by NVIDIA. The twelve base languages follow the base model.
| Base | Magpie-TTS-Multilingual 357M (Koel-TTS family) |
| Audio codec | Low Frame-rate Speech Codec (22.05 kHz, 1.89 kbps, 21.5 fps) |
| Languages | 13 (12 base + Swahili) |
| Swahili quality | 8.8% mean / 0.0% median CER (MMS-sw) |
| Base regression | ~0 (mean recognizer CER identical to base) |
| Voices | 5 baked speakers (2 female, 3 male), selected by index |
| Trained on | 1× 128 GB unified-memory GPU |
1from nemo.collections.tts.models import MagpieTTSModel
2import soundfile as sf, numpy as np, torch, random
3
4m = MagpieTTSModel.from_pretrained("infinia-ai/magpie-tts-13lang-357m").eval().cuda()
5
6# Deterministic inference: pin the seed so identical inputs give identical audio
7def seed(s=1234):
8 random.seed(s); np.random.seed(s); torch.manual_seed(s); torch.cuda.manual_seed_all(s)
9
10seed(1234)
11audio, alen = m.do_tts(
12 "Habari ya asubuhi. Karibu kwenye jaribio la sauti ya Kiswahili.",
13 language="sw", # native Swahili code; also en, de, es, fr, it, vi,
14 # zh, hi, ja, pt-BR, ko, ar-MSA, ar-SA, ar-AE
15 speaker_index=0, # 0 Aria(F) 1 Jason(M) 2 John(M) 3 Leo(M) 4 Sofia(F)
16 apply_TN=False, use_cfg=True,
17)
18w = np.squeeze(audio.detach().float().cpu().numpy())
19sf.write("out.wav", (w[0] if w.ndim > 1 else w).astype(np.float32), 22050)phoneme_probability=1.0 (deterministic
phonemization) and the sampler defaults (temperature 0.7, top-k 80, CFG 2.5) match
the base model. With a fixed RNG seed, identical (text, language, voice, CFG, seed)
inputs produce byte-identical audio; change the seed for a different rendering.
For the occasional degenerate silent generation, resample at a new seed
(retry-on-silence).en, de, es, fr, it, vi, zh, hi, ja, pt-BR, ko, ar-MSA, ar-SA, ar-AE, sw.sw_ke (CC-BY), ~27.8 h, resampled to 22.05 kHz.LICENSE and NOTICE).
Derived from nvidia/magpie_tts_multilingual_357m. "Licensed by NVIDIA
Corporation under the NVIDIA Open Model License." Training data: FLEURS (CC-BY),
Bateesa Kiswahili TTS (CC-BY).