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) → Tensor
Generate waveform with pretrained vocoder.
- Parameters:feats (Tensor) – Feature tensor (T_feats, #mels).
- Returns: Generated waveform tensor (T_wav).
- Return type: Tensor