espnet2.tts.utils.parallel_wavegan_pretrained_vocoder.ParallelWaveGANPretrainedVocoder
Less than 1 minute
espnet2.tts.utils.parallel_wavegan_pretrained_vocoder.ParallelWaveGANPretrainedVocoder
class espnet2.tts.utils.parallel_wavegan_pretrained_vocoder.ParallelWaveGANPretrainedVocoder(model_file: Path | str, config_file: Path | str | None = None)
Bases: Module
Wrapper class to load the vocoder trained with parallel_wavegan repo.
Initialize ParallelWaveGANPretrainedVocoder module.
forward(feats: Tensor, f0: Tensor = None) β Tensor
Generate waveform with pretrained vocoder.
- Parameters:
- feats (Tensor) β Feature tensor (T_feats, #mels).
- f0 (Tensor) β f0 information (T_feats)
- Returns: Generated waveform tensor (T_wav).
- Return type: Tensor
