espnet2.svs.feats_extract.score_feats_extract.SyllableScoreFeats
espnet2.svs.feats_extract.score_feats_extract.SyllableScoreFeats
class espnet2.svs.feats_extract.score_feats_extract.SyllableScoreFeats(fs: int | str = 22050, n_fft: int = 1024, win_length: int = 512, hop_length: int = 128, window: str = 'hann', center: bool = True)
Bases: AbsFeatsExtract
Initializes internal Module state, shared by both nn.Module and ScriptModule.
extra_repr()
Set the extra representation of the module
To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.
forward(label: Tensor | None = None, label_lengths: Tensor | None = None, midi: Tensor | None = None, midi_lengths: Tensor | None = None, duration: Tensor | None = None, duration_lengths: Tensor | None = None) → Tuple[Tensor, Tensor, Tensor, Tensor, Tensor, Tensor]
SyllableScoreFeats forward function.
- Parameters:
- label – (Batch, Nsamples)
- label_lengths – (Batch)
- midi – (Batch, Nsamples)
- midi_lengths – (Batch)
- duration – (Batch, Nsamples)
- duration_lengths – (Batch)
- Returns: (Batch, Frames)
- Return type: output
get_parameters() → Dict[str, Any]
get_segments(label: Tensor | None = None, label_lengths: Tensor | None = None, midi: Tensor | None = None, midi_lengths: Tensor | None = None, duration: Tensor | None = None, duration_lengths: Tensor | None = None)
output_size() → int