快捷鍵

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[原始碼]

建立頻率箱轉換矩陣。

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) – Mel 濾波器組數量

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

  • bark_scale (str, optional) – 要使用的比例:traunmuller、``schroeder`` 或 wang。(預設:traunmuller)

回傳:

大小為 (n_freqs, n_barks) 的三角形濾波器組 (fb 矩陣),意思是突出顯示/應用於 x 的濾波器組數量的頻率數量。 每一列都是一個濾波器組,因此假設有一個大小為 (…, n_freqs) 的矩陣 A,則應用的結果將是 A * barkscale_fbanks(A.size(-1), ...)

回傳類型:

torch.Tensor

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

為初學者和進階開發者提供深入的教學

查看教學

資源

尋找開發資源並獲得問題解答

查看資源