Sunbird / tts-tacotron2-lug

huggingface.co
Total runs: 28
24-hour runs: 0
7-day runs: -3
30-day runs: 7
Model's Last Updated: February 01 2023
text-to-speech

Introduction of tts-tacotron2-lug

Model Details of tts-tacotron2-lug

Sunbird AI Text-to-Speech (TTS) model trained on Luganda text

Text-to-Speech (TTS) with Tacotron2 trained on Professional Studio Recordings

This repository provides all the necessary tools for Text-to-Speech (TTS) with SpeechBrain.

The pre-trained model takes in input a short text and produces a spectrogram in output. One can get the final waveform by applying a vocoder (e.g., HiFIGAN) on top of the generated spectrogram.

Install SpeechBrain
pip install speechbrain
Perform Text-to-Speech (TTS)
import torchaudio
from speechbrain.pretrained import Tacotron2
from speechbrain.pretrained import HIFIGAN

# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
tacotron2 = Tacotron2.from_hparams(source="/Sunbird/sunbird-lug-tts", savedir="tmpdir_tts")
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")

# Running the TTS
mel_output, mel_length, alignment = tacotron2.encode_text("Mbagaliza Christmass Enungi Nomwaka Omugya Gubaberere Gwamirembe")

# Running Vocoder (spectrogram-to-waveform)
waveforms = hifi_gan.decode_batch(mel_output)

# Save the waverform
torchaudio.save('example_TTS.wav',waveforms.squeeze(1), 22050)

If you want to generate multiple sentences in one-shot, you can do in this way:

from speechbrain.pretrained import Tacotron2
tacotron2 = Tacotron2.from_hparams(source="speechbrain/TTS_Tacotron2", savedir="tmpdir")

items = [
       "Nsanyuse okukulaba",
       "Erinnya lyo ggwe ani?",
       "Mbagaliza Christmass Enungi Nomwaka Omugya Gubaberere Gwamirembe"
     ]
mel_outputs, mel_lengths, alignments = tacotron2.encode_batch(items)
Inference on GPU

To perform inference on the GPU, add run_opts={"device":"cuda"} when calling the from_hparams method.

Runs of Sunbird tts-tacotron2-lug on huggingface.co

28
Total runs
0
24-hour runs
0
3-day runs
-3
7-day runs
7
30-day runs

More Information About tts-tacotron2-lug huggingface.co Model

More tts-tacotron2-lug license Visit here:

https://choosealicense.com/licenses/apache-2.0

tts-tacotron2-lug huggingface.co

tts-tacotron2-lug huggingface.co is an AI model on huggingface.co that provides tts-tacotron2-lug's model effect (), which can be used instantly with this Sunbird tts-tacotron2-lug model. huggingface.co supports a free trial of the tts-tacotron2-lug model, and also provides paid use of the tts-tacotron2-lug. Support call tts-tacotron2-lug model through api, including Node.js, Python, http.

tts-tacotron2-lug huggingface.co Url

https://huggingface.co/Sunbird/tts-tacotron2-lug

Sunbird tts-tacotron2-lug online free

tts-tacotron2-lug huggingface.co is an online trial and call api platform, which integrates tts-tacotron2-lug's modeling effects, including api services, and provides a free online trial of tts-tacotron2-lug, you can try tts-tacotron2-lug online for free by clicking the link below.

Sunbird tts-tacotron2-lug online free url in huggingface.co:

https://huggingface.co/Sunbird/tts-tacotron2-lug

tts-tacotron2-lug install

tts-tacotron2-lug is an open source model from GitHub that offers a free installation service, and any user can find tts-tacotron2-lug on GitHub to install. At the same time, huggingface.co provides the effect of tts-tacotron2-lug install, users can directly use tts-tacotron2-lug installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tts-tacotron2-lug install url in huggingface.co:

https://huggingface.co/Sunbird/tts-tacotron2-lug

Url of tts-tacotron2-lug

tts-tacotron2-lug huggingface.co Url

Provider of tts-tacotron2-lug huggingface.co

Sunbird
ORGANIZATIONS

Other API from Sunbird

huggingface.co

Total runs: 3.3K
Run Growth: 2.0K
Growth Rate: 60.05%
Updated:October 09 2025
huggingface.co

Total runs: 2.1K
Run Growth: 321
Growth Rate: 15.29%
Updated:October 09 2025
huggingface.co

Total runs: 263
Run Growth: 0
Growth Rate: 0.00%
Updated:July 01 2024
huggingface.co

Total runs: 18
Run Growth: 11
Growth Rate: 61.11%
Updated:October 19 2023
huggingface.co

Total runs: 14
Run Growth: 8
Growth Rate: 57.14%
Updated:February 14 2025
huggingface.co

Total runs: 10
Run Growth: 4
Growth Rate: 40.00%
Updated:September 11 2023
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:January 09 2023
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:February 10 2023
huggingface.co

Total runs: 3
Run Growth: -1
Growth Rate: -33.33%
Updated:December 14 2023
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:October 19 2023
huggingface.co

Total runs: 1
Run Growth: -43
Growth Rate: -4300.00%
Updated:October 19 2023
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:February 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 08 2021