Text-to-Speech (TTS) with Tacotron2 trained on a custom german dataset with 12 days voice using speechbrain.
Trained for 39 epochs (english speechbrain models are trained for 750 epochs) so there is room for improvement and the model is most likely to be updated soon. The hifigan vocoder can fortunately be used language-independently.
How to use
Install speechbrain.
pip install speechbrain
Generate spectrogram (line 17) and generate wav using hifigan (line 18).
import torchaudio
from speechbrain.pretrained import Tacotron2
from speechbrain.pretrained import HIFIGAN
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
tacotron2 = Tacotron2.from_hparams(source="padmalcom/tts-tacotron2-german", 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("Die Sonne schien den ganzen Tag.")
# Running Vocoder (spectrogram-to-waveform)
waveforms = hifi_gan.decode_batch(mel_output)
# Save the waverform
torchaudio.save('example_TTS.wav',waveforms.squeeze(1), 22050)
Runs of padmalcom tts-tacotron2-german on huggingface.co
6
Total runs
0
24-hour runs
3
3-day runs
4
7-day runs
-4
30-day runs
More Information About tts-tacotron2-german huggingface.co Model
tts-tacotron2-german huggingface.co is an AI model on huggingface.co that provides tts-tacotron2-german's model effect (), which can be used instantly with this padmalcom tts-tacotron2-german model. huggingface.co supports a free trial of the tts-tacotron2-german model, and also provides paid use of the tts-tacotron2-german. Support call tts-tacotron2-german model through api, including Node.js, Python, http.
tts-tacotron2-german huggingface.co is an online trial and call api platform, which integrates tts-tacotron2-german's modeling effects, including api services, and provides a free online trial of tts-tacotron2-german, you can try tts-tacotron2-german online for free by clicking the link below.
padmalcom tts-tacotron2-german online free url in huggingface.co:
tts-tacotron2-german is an open source model from GitHub that offers a free installation service, and any user can find tts-tacotron2-german on GitHub to install. At the same time, huggingface.co provides the effect of tts-tacotron2-german install, users can directly use tts-tacotron2-german installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
tts-tacotron2-german install url in huggingface.co: