Text-to-Speechal一键脱装入口 (TTS做al视频怎么赚钱) with Tacotron2 trained on a custom Germanal一键脱装入口 dataset with 12 days voice using speechbrain百度流畅ai制作.
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.快问ai
How to use
Install speechbrain.al一键脱装入口
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)
数据统计
数据评估
关于padmalcom/tts-tacotron2-german特别声明
本站菠萝导航提供的padmalcom/tts-tacotron2-german都来源于网络,不保证外部链接的准确性和完整性,同时,对于该外部链接的指向,不由菠萝导航实际控制,在2023年5月15日 下午3:16收录时,该网页上的内容,都属于合规合法,后期网页的内容如出现违规,可以直接联系网站管理员进行删除,菠萝导航不承担任何责任。百度ai智能云
相关导航
暂无评论...下载官方即梦a1

