torchaudio.functional.equalizer_biquad¶
- torchaudio.functional.equalizer_biquad(waveform: Tensor, sample_rate: int, center_freq: float, gain: float, Q: float = 0.707) Tensor [source]¶
Design biquad peaking equalizer filter and perform filtering. Similar to SoX implementation.
- Parameters:
waveform (Tensor) – audio waveform of dimension of (…, time)
sample_rate (int) – sampling rate of the waveform, e.g. 44100 (Hz)
center_freq (float) – filter’s central frequency
gain (float or torch.Tensor) – desired gain at the boost (or attenuation) in dB
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