快捷方式

torchaudio.functional.band_biquad

torchaudio.functional.band_biquad(waveform: Tensor, sample_rate: int, central_freq: float, Q: float = 0.707, noise: bool = False) Tensor[原始碼]

設計雙極帶通濾波器。類似於 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 (float or torch.Tensor) – 中心頻率 (Hz)

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

  • noise (bool, 可選) – 如果為 True,則使用適用於非音高音訊 (例如打擊樂) 的備用模式。如果為 False,則使用適用於音高音訊 (即人聲、歌唱或樂器音樂) 的模式 (預設值: False)。

返回:

維度為 (…, time) 的波形

返回型別:

Tensor

參考資料

文件

訪問全面的 PyTorch 開發者文件

檢視文件

教程

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

檢視教程

資源

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

檢視資源