torchaudio.functional.lowpass_biquad¶
- torchaudio.functional.lowpass_biquad(waveform: Tensor, sample_rate: int, cutoff_freq: float, Q: float = 0.707) Tensor [source]¶
Design biquad lowpass filter and perform filtering. Similar to SoX implementation.
- Parameters:
waveform (torch.Tensor) – audio waveform of dimension of (…, time)
sample_rate (int) – sampling rate of the waveform, e.g. 44100 (Hz)
cutoff_freq (float or torch.Tensor) – filter cutoff frequency
Q (float or torch.Tensor, optional) – https://en.wikipedia.org/wiki/Q_factor (Default:
0.707
)
- Returns:
Waveform of dimension of (…, time)
- Return type:
Tensor