捷徑

torchaudio.functional.create_dct

torchaudio.functional.create_dct(n_mfcc: int, n_mels: int, norm: Optional[str]) Tensor[原始碼]

建立一個 DCT 轉換矩陣,其形狀為 (n_mels, n_mfcc),並根據 norm 進行正規化。

This feature supports the following devices: CPU This API supports the following properties: TorchScript
參數:
  • n_mfcc (int) – 要保留的 mfc 係數數量

  • n_mels (int) – Mel 濾波器的數量

  • norm (strNone) – 要使用的 Norm(“ortho” 或 None)

返回:

轉換矩陣,要右乘大小為 (n_mels, n_mfcc) 的列式資料。

返回類型:

Tensor

文件

存取 PyTorch 的完整開發者文件

檢視文件

教學

取得初學者和進階開發者的深入教學

檢視教學

資源

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

檢視資源