espnet2.layers.augmentation.equalization_filtering
Less than 1 minute
espnet2.layers.augmentation.equalization_filtering
espnet2.layers.augmentation.equalization_filtering(waveform, sample_rate: int, center_freq: int = 1000, gain: float = 0.0, Q: float = 0.707)
Equalization filter the input signal.
- Parameters:
- waveform (torch.Tensor) – audio signal (…, time)
- sample_rate (int) – sampling rate in Hz
- center_freq (int) – filter’s center frequency
- gain (float or torch.Tensor) – desired gain at the boost (or attenuation) in dB
- Q (float or torch.Tensor) – https://en.wikipedia.org/wiki/Q_factor
- Returns: filtered signal (…, time)
- Return type: ret (torch.Tensor)