Views
No views yet
pip install speechbrain transformers1import torch
2from speechbrain.pretrained import UnitHIFIGAN
3
4hifi_gan_unit = UnitHIFIGAN.from_hparams(source="chaanks/hifigan-unit-hubert-l7-k512-ljspeech-ljspeech", savedir="tmpdir_vocoder")
5codes = torch.randint(0, 99, (100,))
6waveform = hifi_gan_unit.decode_unit(codes)
7run_opts={"device":"cuda"} when calling the from_hparams method.@misc{SB2021,
author = {Ravanelli, Mirco and Parcollet, Titouan and Rouhe, Aku and Plantinga, Peter and Rastorgueva, Elena and Lugosch, Loren and Dawalatabad, Nauman and Ju-Chieh, Chou and Heba, Abdel and Grondin, Francois and Aris, William and Liao, Chien-Feng and Cornell, Samuele and Yeh, Sung-Lin and Na, Hwidong and Gao, Yan and Fu, Szu-Wei and Subakan, Cem and De Mori, Renato and Bengio, Yoshua },
title = {SpeechBrain},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\\\\url{https://github.com/speechbrain/speechbrain}},
}