Basque (euskara) text-to-speech: a supervised fine-tune of the slow AR branch (fast AR kept frozen) of Edge0/Audio8-TTS-Realistic-Air (0.6B, DualAR, 44.1 kHz codec, zero-shot voice cloning). Basque is not one of the base model's 23 languages, so this release adapts it to a new language.
Status: experimental. Trained on about 9 hours of read speech from one corpus. Listen to the samples before you use it, and expect errors on rare words, acronyms and code-switching.
git clone https://github.com/Edge0-AI/Audio8_TTS && cd Audio8_TTS
pip install -r requirements.txt
import sys, soundfile as sf, torch
from huggingface_hub import hf_hub_download
from transformers import AutoModel, AutoProcessor
repo = "itzune/antzoki-mini-tts"
sys.path.insert(0, hf_hub_download(repo, "eu_normalize.py").rsplit("/", 1)[0])
from eu_normalize import normalize # same normalizer as in training
processor = AutoProcessor.from_pretrained(repo, trust_remote_code=True)
model = AutoModel.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).cuda().eval()
text = normalize("Donostiako zinemaldia 1953an sortu zen.") # -> "... mila bederatziehun eta berrogeita hamahiruan ..."
inputs = processor(text=[text], return_tensors="pt")
# voice cloning: processor(text=[text], reference_audio=["ref.wav"], reference_text=["exact transcript"], return_tensors="pt")
inputs = {k: v.cuda() for k, v in inputs.items()}
out = model.generate(**inputs, max_new_tokens=512, do_sample=True, temperature=0.8, top_p=0.95,
top_k=50, return_dict_in_generate=True)
wav, lengths = model.decode_audio(out.codes)
sf.write("out.wav", wav[0, : int(lengths[0])].float().cpu().numpy(), model.config.codec_sample_rate)
Or with the CLI from the Audio8 repo:
python audio8_tts_infer.py --model itzune/antzoki-mini-tts --text "..." [--reference-audio ref.wav --reference-text "..."] --output out.wav
CPU without Python or GPU: the llama.cpp GGUF build (Q4_K_M) is in itzune/antzoki-mini-tts-GGUF.
Always normalize the text with eu_normalize.normalize(). The model never saw digits
during training: numbers become Basque words that keep their case suffix
(2008an → bi mila eta zortzian, 1950eko → mila bederatziehun eta berrogeita hamarreko).
Keep each input under about 150 characters.
| Data | OpenSLR 76: crowdsourced Basque read speech. After filtering: 6811 training utterances (9.1 h), 50 speakers |
| Held out | speakers euf_07505, eum_01523, used for evaluation and never trained on |
| Audio prep | silence trimming, resampled to 44.1 kHz, loudness set to −20 LUFS (−1 dBFS peak), speaking-rate outlier filter |
| Voice cloning | 61% of training rows paired with another utterance of the same speaker as the reference prompt |
| Method | slow AR branch trained, fast AR (acoustic detail) frozen, bf16, DeepSpeed ZeRO-2, 1× RTX 5090 (24 GB) |
| Hyper-params | learning_rate=1e-5, num_train_epochs=2, batch_size=4, gradient_accumulation_steps=4, warmup_ratio=0.03, lr_scheduler_type=cosine, weight_decay=0.01, extra: --load_best_model_at_end true --metric_for_best_model eval_loss --greater_is_better false |
| Pipeline | https://github.com/itzune/antzoki-mini-tts (Audio8_TTS @ aef426d) |
Teacher-forced loss on 200 utterances from the held-out speakers (lower is better).
| Model | eval loss | slow loss | fast loss | slow acc |
|---|---|---|---|---|
| base (Audio8-TTS-Realistic-Air) | 12.730 | 5.423 | 7.308 | 0.102 |
| audio8_eu_sft_v2 | 9.088 | 3.803 | 5.285 | 0.176 |
| audio8_eu_sft_v4 (this release) | 9.183 | 3.806 | 5.378 | 0.177 |
A first run (2e-5 learning rate, 6 epochs) reached its best held-out loss after about 250 steps and then overfit: OpenSLR 76 has many speakers reading the same sentences. This release uses the same short, early-stopped schedule with the fast AR frozen: its loss is slightly higher than the fully fine-tuned run, but it sounds and measures about the same and had fewer runaway generations when cloning.
Voice cloning and robustness (8 new sentences × 2 held-out reference voices + no reference, 8 seeds). SIM = cosine similarity of WavLM speaker embeddings between the output and the reference (real recordings: 0.97 same speaker, 0.673 different speakers). A runaway has no end of speech or a speaking rate below 8 characters/s.
| Model | SIM ↑ | runaway, with ref | runaway, no ref |
|---|---|---|---|
| base (Audio8-TTS-Realistic-Air) | 0.968 | 8/128 (6%) | 5/64 (8%) |
| this model | 0.957 | 4/128 (3%) | 8/64 (12%) |
No reference audio (the model picks a voice):
U2, AP-68) are read with Basque digit names.scripts/say.py in the GitHub repo does this automatically.LICENSE and NOTICE).