espnet2.layers.augmentation.highpass_filtering
Less than 1 minute
espnet2.layers.augmentation.highpass_filtering
espnet2.layers.augmentation.highpass_filtering(waveform, sample_rate: int, cutoff_freq: int = 3000, Q: float = 0.707)
Highpass 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)