espnet2.tts2.abs_tts2.AbsTTS2
Less than 1 minute
espnet2.tts2.abs_tts2.AbsTTS2
class espnet2.tts2.abs_tts2.AbsTTS2(*args, **kwargs)
Bases: Module
, ABC
TTS2 (Discrete Unit-Based TTS) abstract class.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
abstract forward(text: Tensor, text_lengths: Tensor, feats: Tensor, feats_lengths: Tensor, **kwargs) → Tuple[Tensor, Dict[str, Tensor], Tensor]
Calculate outputs and return the loss tensor.
abstract inference(text: Tensor, **kwargs) → Dict[str, Tensor]
Return predicted output as a dict.
property require_raw_speech
Return whether or not raw_speech is required.
property require_vocoder
Return whether or not vocoder is required.