espnet2.layers.augmentation.lowpass_filtering
Less than 1 minute
espnet2.layers.augmentation.lowpass_filtering
espnet2.layers.augmentation.lowpass_filtering(waveform, sample_rate: int, cutoff_freq: int = 1000, Q: float = 0.707)
Lowpass filter the input signal.
- Parameters:
- waveform (torch.Tensor) – audio signal (…, time)
- sample_rate (int) – sampling rate in Hz
- cutoff_freq (int) – filter cutoff frequency
- Q (float or torch.Tensor) – https://en.wikipedia.org/wiki/Q_factor
- Returns: filtered signal (…, time)
- Return type: ret (torch.Tensor)