espnet2.s2st.tgt_feats_extract.log_mel_fbank.LogMelFbank
espnet2.s2st.tgt_feats_extract.log_mel_fbank.LogMelFbank
class espnet2.s2st.tgt_feats_extract.log_mel_fbank.LogMelFbank(fs: int | str = 16000, n_fft: int = 1024, win_length: int | None = None, hop_length: int = 256, window: str | None = 'hann', center: bool = True, normalized: bool = False, onesided: bool = True, n_mels: int = 80, fmin: int | None = 80, fmax: int | None = 7600, htk: bool = False, log_base: float | None = 10.0)
Bases: AbsTgtFeatsExtract
Conventional frontend structure for TTS.
Stft -> amplitude-spec -> Log-Mel-Fbank
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(input: Tensor, input_lengths: Tensor | None = None) → Tuple[Tensor, Tensor]
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
get_parameters() → Dict[str, Any]
Return the parameters required by Vocoder
output_size() → int
spectrogram() → bool