快捷方式

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) – 要保留的 mfcc 系数数量

  • n_mels (int) – Mel 滤波器组的数量

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

返回

变换矩阵,用于与大小为 (n_mels, n_mfcc) 的行数据进行右乘。

返回类型

张量

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源