“智慧银川2.0模式”为城市建设树立起新基点

paddle.audio.functional. create_dct ( n_mfcc: int, n_mels: int, norm: Optional[Literal['ortho']] = 'ortho', dtype: str = 'float32' ) Tensor [source]
百度 李白的诗《在寻阳非所寄内》中有“多君同蔡琰,流泪请曹公”之语,即是借蔡文姬求曹操饶恕董祀的典故,说明妻子为自己多方奔走的辛劳。

Create a discrete cosine transform(DCT) matrix.

Parameters
  • n_mfcc (int) – Number of mel frequency cepstral coefficients.

  • n_mels (int) – Number of mel filterbanks.

  • norm (Optional[str], optional) – Normalization type. Defaults to ‘ortho’.

  • dtype (str, optional) – The data type of the return matrix. Defaults to ‘float32’.

Returns

The DCT matrix with shape (n_mels, n_mfcc).

Return type

Tensor

Examples

>>> import paddle
>>> n_mfcc = 23
>>> n_mels = 257
>>> dct = paddle.audio.functional.create_dct(n_mfcc, n_mels)