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
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Luganda TTS (lug-tts-v4)
|
| 2 |
+
|
| 3 |
+
Luganda Text-to-Speech model trained with NVIDIA NeMo.
|
| 4 |
+
|
| 5 |
+
## Models
|
| 6 |
+
- `luganda_fastpitch_final.nemo` - FastPitch spectrogram generator
|
| 7 |
+
- `luganda_hifigan_final.nemo` - HiFi-GAN vocoder
|
| 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 |
+
- Dataset: Sunbird/salt Luganda studio recordings
|
| 26 |
+
- Steps: 5,000 (FastPitch fine-tuning)
|
| 27 |
+
- Test Results: 8/8 phrases passed
|