torchaudio.functional.create_dct¶ torchaudio.functional.create_dct(n_mfcc: int, n_mels: int, norm: Optional[str]) → Tensor[source]¶ 创建一个 DCT 转换矩阵,形状为 (n_mels, n_mfcc),根据 norm 进行归一化。 参数: n_mfcc (int) – 要保留的 mfc 系数数量 n_mels (int) – Mel 滤波器组的数量 norm (str 或 None) – 要使用的范数(“ortho” 或 None) 返回: 转换矩阵,将右乘大小为 (n_mels, n_mfcc) 的行式数据。 返回类型: Tensor