File size: 1,938 Bytes
5827d9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: other
language:
  - ha
tags:
  - text-to-speech
  - xtts
  - hausa
  - coqui
library_name: coqui-tts
---

# XTTS-v2 Hausa — multi-speaker (3 speakers, 10 epochs)

Fine-tuned [Coqui XTTS-v2](https://huggingface.co/coqui/XTTS-v2) for Hausa (`ha`), trained on
`vaghawan/hausa-tts-24khz-waxalnlp-3-clean`, `vaghawan/hausa-tts-24khz-waxalnlp-5-clean`, `vaghawan/hausa-tts-24khz-naijavoices-O0456`.

## Files

| File | Purpose |
|------|---------|
| `best_model.pth` | Fine-tuned GPT checkpoint (epoch 10) |
| `config.json` | Model config (includes Hausa language) |
| `vocab.json` | Extended Hausa BPE vocabulary |
| `references/hausa_fe_waxal_nlp_3.wav` | Speaker reference for `hausa_fe_waxal_nlp_3` |
| `references/hausa_fe_waxal_nlp_5.wav` | Speaker reference for `hausa_fe_waxal_nlp_5` |
| `references/hausa_fe_naijavoices_O0456.wav` | Speaker reference for `hausa_fe_naijavoices_O0456` |
| `infer.py` | Inference script |
| `xtts_hausa_patch.py` | Required Hausa runtime patches |
| `env_config.py` | Config loader |
| `config.env.example` | Example settings (copy to `config.env`) |
| `samples.txt` | Default eval sentences |
| `requirements.txt` | Python dependencies |

## Quick start

```bash
pip install -r requirements.txt
cp config.env.example config.env

python infer.py --model-dir . --speaker-wav references/hausa_fe_waxal_nlp_3.wav

# Single line:
python infer.py --model-dir . --text "Ina kwana." --speaker-wav references/hausa_fe_waxal_nlp_3.wav --out outputs/out.wav
```

# All speakers (one WAV per reference):
python infer.py --model-dir . --all-speakers --out-dir outputs/samples

## Training details

- Base model: Coqui XTTS-v2
- Epochs: 10
- Language: Hausa (`ha`)
- Speakers: `hausa_fe_waxal_nlp_3`, `hausa_fe_waxal_nlp_5`, `hausa_fe_naijavoices_O0456`

## License

XTTS-v2 uses the [Coqui Public Model License](https://huggingface.co/coqui/XTTS-v2).
Check each dataset license before redistribution.