espnet2.layers.sinc_conv.BarkScale
Less than 1 minute
espnet2.layers.sinc_conv.BarkScale
class espnet2.layers.sinc_conv.BarkScale
Bases: object
Bark frequency scale.
Has wider bandwidths at lower frequencies, see: Critical bandwidth: BARK Zwicker and Terhardt, 1980
classmethod bank(channels: int, fs: float) → Tensor
Obtain initialization values for the Bark scale.
- Parameters:
- channels – Number of channels.
- fs – Sample rate.
- Returns: Filter start frequencíes. torch.Tensor: Filter stop frequencíes.
- Return type: torch.Tensor
static convert(f)
Convert Hz to Bark.
static invert(x)
Convert Bark to Hz.