快捷方式

torchaudio.prototype.functional.barkscale_fbanks

torchaudio.prototype.functional.barkscale_fbanks(n_freqs: int, f_min: float, f_max: float, n_barks: int, sample_rate: int, bark_scale: str = 'traunmuller') Tensor[source]

建立一個頻率 bin 轉換矩陣。

This feature supports the following devices: CPU This API supports the following properties: TorchScript Visualization of generated filter bank
引數:
  • n_freqs (int) – 要高亮/應用的頻率數

  • f_min (float) – 最小頻率 (Hz)

  • f_max (float) – 最大頻率 (Hz)

  • n_barks (int) – Bark 濾波器組的數量

  • sample_rate (int) – 音訊波形的取樣率

  • bark_scale (str, 可選) – 要使用的尺度: traunmuller、``schroeder`` 或 wang。(預設值: traunmuller

返回:

大小為 (n_freqs, n_barks) 的三角濾波器組 (fb 矩陣),表示要高亮/應用的頻率數乘以濾波器組數。每列是一個濾波器組,因此假設存在一個大小為 (…, n_freqs) 的矩陣 A,應用後的結果將是 A * barkscale_fbanks(A.size(-1), ...)

返回型別:

torch.Tensor


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

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

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

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

檢視教程

資源

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

檢視資源