Update README.md
Browse files
README.md
CHANGED
@@ -18,7 +18,7 @@ metrics:
|
|
18 |
|
19 |
### Text-to-Speech (TTS) with Tacotron2 trained on Male Commonvoice Recordings
|
20 |
|
21 |
-
This repository provides all the necessary tools for Text-to-Speech (TTS) with SpeechBrain
|
22 |
|
23 |
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.
|
24 |
|
@@ -44,7 +44,7 @@ tacotron2 = Tacotron2.from_hparams(source="sunbird/sunbird-lug-tts-commonvoice-m
|
|
44 |
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
|
45 |
|
46 |
# Running the TTS
|
47 |
-
mel_output, mel_length, alignment = tacotron2.encode_text("
|
48 |
|
49 |
# Running Vocoder (spectrogram-to-waveform)
|
50 |
waveforms = hifi_gan.decode_batch(mel_output)
|
|
|
18 |
|
19 |
### Text-to-Speech (TTS) with Tacotron2 trained on Male Commonvoice Recordings
|
20 |
|
21 |
+
This repository provides all the necessary tools for Text-to-Speech (TTS) with SpeechBrain.
|
22 |
|
23 |
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.
|
24 |
|
|
|
44 |
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
|
45 |
|
46 |
# Running the TTS
|
47 |
+
mel_output, mel_length, alignment = tacotron2.encode_text("Mbagaliza Christmass Enungi Nomwaka Omugya Gubaberere Gwamirembe")
|
48 |
|
49 |
# Running Vocoder (spectrogram-to-waveform)
|
50 |
waveforms = hifi_gan.decode_batch(mel_output)
|