Instructions to use cxlrd/lug-tts-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use cxlrd/lug-tts-v4 with NeMo:
# tag did not correspond to a valid NeMo domain.
- Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,27 +1,33 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
Luganda
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Models
|
| 6 |
-
|
| 7 |
-
-
|
|
|
|
|
|
|
| 8 |
|
| 9 |
## Usage
|
| 10 |
-
```python
|
| 11 |
-
from nemo.collections.tts.models import FastPitchModel, HifiGanModel
|
| 12 |
-
import soundfile as sf
|
| 13 |
|
| 14 |
-
fastpitch = FastPitchModel.restore_from("luganda_fastpitch_final.nemo")
|
| 15 |
-
hifigan = HifiGanModel.restore_from("luganda_hifigan_final.nemo")
|
| 16 |
|
| 17 |
-
text = "Oli otya?"
|
| 18 |
-
parsed = fastpitch.parse(text)
|
| 19 |
-
spec = fastpitch.generate_spectrogram(tokens=parsed)
|
| 20 |
-
audio = hifigan.convert_spectrogram_to_audio(spec=spec)
|
| 21 |
-
sf.write("output.wav", audio.cpu().numpy()[0], 22050)
|
| 22 |
-
```
|
| 23 |
|
| 24 |
## Training
|
| 25 |
-
|
| 26 |
-
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: lg
|
| 3 |
+
tags:
|
| 4 |
+
- tts
|
| 5 |
+
- text-to-speech
|
| 6 |
+
- luganda
|
| 7 |
+
- nemo
|
| 8 |
+
- fastpitch
|
| 9 |
+
- hifigan
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
---
|
| 12 |
|
| 13 |
+
# Luganda TTS v4
|
| 14 |
+
|
| 15 |
+
Text-to-Speech model for Luganda language using NVIDIA NeMo FastPitch + HiFi-GAN.
|
| 16 |
|
| 17 |
## Models
|
| 18 |
+
|
| 19 |
+
- **luganda_fastpitch_final.nemo**: FastPitch mel-spectrogram generator fine-tuned on Luganda
|
| 20 |
+
- **tts_en_hifigan.nemo**: HiFi-GAN vocoder (pretrained English)
|
| 21 |
+
- **pitch_stats.json**: Luganda pitch normalization statistics
|
| 22 |
|
| 23 |
## Usage
|
|
|
|
|
|
|
|
|
|
| 24 |
|
|
|
|
|
|
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
## Training
|
| 28 |
+
|
| 29 |
+
Fine-tuned from English FastPitch on ~2000 Luganda samples from Sunbird/salt dataset.
|
| 30 |
+
|
| 31 |
+
## License
|
| 32 |
+
|
| 33 |
+
Apache 2.0
|