快捷方式

torchaudio.functional.bandpass_biquad

torchaudio.functional.bandpass_biquad(waveform: Tensor, sample_rate: int, central_freq: float, Q: float = 0.707, const_skirt_gain: bool = False) Tensor[source]

設計雙極點帶通濾波器。類似於 SoX 實現。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
引數:
  • waveform (Tensor) – 維度為 (…, time) 的音訊波形

  • sample_rate (int) – 波形的取樣率,例如 44100 (Hz)

  • central_freq (floattorch.Tensor) – 中心頻率 (Hz)

  • Q (floattorch.Tensor, 可選) – https://en.wikipedia.org/wiki/Q_factor (預設值: 0.707)

  • const_skirt_gain (bool, 可選) – 如果為 True,使用恆定裙邊增益 (峰值增益 = Q)。如果為 False,使用恆定 0dB 峰值增益。(預設值: False)

返回值:

維度為 (…, time) 的波形

返回型別:

Tensor

參考

© 版權所有 2024,Torchaudio 貢獻者。

使用 Sphinx 構建,主題由 Read the Docs 提供。

文件

查閱 PyTorch 的全面開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲取問題解答

檢視資源