espnet2.s2st.synthesizer.abs_synthesizer.AbsSynthesizer
Less than 1 minute
espnet2.s2st.synthesizer.abs_synthesizer.AbsSynthesizer
class espnet2.s2st.synthesizer.abs_synthesizer.AbsSynthesizer(*args, **kwargs)
Bases: Module
, ABC
TTS abstract class.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
abstract forward(input_states: Tensor, input_states_lengths: Tensor, feats: Tensor, feats_lengths: Tensor, **kwargs) → Tuple[Tensor, Dict[str, Tensor], Tensor]
Calculate outputs and return the loss tensor.
abstract inference(input_states: 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.