torchaudio.functional.biquad¶
- torchaudio.functional.biquad(waveform: Tensor, b0: float, b1: float, b2: float, a0: float, a1: float, a2: float) Tensor [source]¶
Perform a biquad filter of input tensor. Initial conditions set to 0.
- Parameters:
waveform (Tensor) – audio waveform of dimension of (…, time)
b0 (float or torch.Tensor) – numerator coefficient of current input, x[n]
b1 (float or torch.Tensor) – numerator coefficient of input one time step ago x[n-1]
b2 (float or torch.Tensor) – numerator coefficient of input two time steps ago x[n-2]
a0 (float or torch.Tensor) – denominator coefficient of current output y[n], typically 1
a1 (float or torch.Tensor) – denominator coefficient of current output y[n-1]
a2 (float or torch.Tensor) – denominator coefficient of current output y[n-2]
- Returns:
Waveform with dimension of (…, time)
- Return type:
Tensor