Shortcuts

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.

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
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

Reference:

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources