espnet2.layers.sinc_conv.MelScale
Less than 1 minute
espnet2.layers.sinc_conv.MelScale
class espnet2.layers.sinc_conv.MelScale
Bases: object
Mel frequency scale.
classmethod bank(channels: int, fs: float) → Tensor
Obtain initialization values for the mel scale.
- Parameters:
- channels – Number of channels.
- fs – Sample rate.
- Returns: Filter start frequencíes. torch.Tensor: Filter stop frequencies.
- Return type: torch.Tensor
static convert(f)
Convert Hz to mel.
static invert(x)
Convert mel to Hz.