melgan
voiced segment (fix #30, #17)
梅尔根声码器的非正式Pytorch实施

在Python 3.6上测试
pip install -r requirements.txtpython preprocess.py -c config/default.yaml -d [data's root path]yaml文件python trainer.py -c [config yaml file] -n [name of the run]cp config/default.yaml config/config.yaml ,然后编辑config.yaml*.mel文件的*.wav对。tensorboard --logdir logs/ 尝试Google Colab:todo
import torch
vocoder = torch . hub . load ( 'seungwonpark/melgan' , 'melgan' )
vocoder . eval ()
mel = torch . randn ( 1 , 80 , 234 ) # use your own mel-spectrogram here
if torch . cuda . is_available ():
vocoder = vocoder . cuda ()
mel = mel . cuda ()
with torch . no_grad ():
audio = vocoder . inference ( mel )python inference.py -p [checkpoint path] -i [input mel path] 请参阅以下网址:http://swpark.me/melgan/。使用LJSpeech-1.1在V100 GPU进行了14天的培训。

BSD 3条规定许可证。