espnet2.layers.augmentation.bandreject_filtering
Less than 1 minute
espnet2.layers.augmentation.bandreject_filtering
espnet2.layers.augmentation.bandreject_filtering(waveform, sample_rate: int, center_freq: int = 3000, Q: float = 0.707)
Two-pole band-reject filter the input signal.
- Parameters:
- waveform (torch.Tensor) – audio signal (…, time)
- sample_rate (int) – sampling rate in Hz
- center_freq_freq (int) – filter’s center_freq frequency
- Q (float or torch.Tensor) – https://en.wikipedia.org/wiki/Q_factor
- Returns: filtered signal (…, time)
- Return type: ret (torch.Tensor)