Views
No views yet
| Metric | XTTS v2 (Baseline) | Nile-XTTS-v2 (Ours) | Improvement |
|---|---|---|---|
| WER | 26.8% | 18.8% | 29.9% |
| CER | 8.1% | 4.1% | 49.4% |
| Speaker Similarity | 0.713 | 0.755 | +5.9% |
pip install TTS1import torch
2import torchaudio
3from TTS.tts.configs.xtts_config import XttsConfig
4from TTS.tts.models.xtts import Xtts
5
6# load config and model
7config = XttsConfig()
8config.load_json("config.json")
9
10model = Xtts.init_from_config(config)
11model.load_checkpoint(
12 config,
13 checkpoint_path="model.pth",
14 vocab_path="vocab.json",
15 use_deepspeed=False
16)
17model.cuda()
18model.eval()
19
20# get speaker latents from reference audio
21gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(
22 audio_path="reference.wav",
23 gpt_cond_len=6,
24 max_ref_length=30,
25 sound_norm_refs=False
26)
27
28# synth speech
29out = model.inference(
30 text="مرحبا، إزيك النهارده؟",
31 language="ar",
32 gpt_cond_latent=gpt_cond_latent,
33 speaker_embedding=speaker_embedding,
34 temperature=0.7,
35)
36
37# save output
38torchaudio.save("output.wav", torch.tensor(out["wav"]).unsqueeze(0), 24000)@inproceedings{khamis-ahmed-2026-llm,
title = "{LLM}-to-Speech: A Synthetic Data Pipeline for Training Dialectal Text-to-Speech Models",
author = "Khamis, Ahmed and
Ahmed, Hesham Ali",
booktitle = "Proceedings of the 2nd Workshop on {NLP} for Languages Using {A}rabic Script",
month = mar,
year = "2026",
address = "Rabat, Morocco",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.abjadnlp-1.6/",
pages = "47--54"
}