mindspore.dataset.audio.create_dct
- mindspore.dataset.audio.create_dct(n_mfcc, n_mels, norm=NormMode.NONE)[source]
Create a DCT transformation matrix with shape (n_mels, n_mfcc), normalized depending on norm.
- Parameters
- Returns
numpy.ndarray, the transformation matrix, to be right-multiplied to row-wise data of size (n_mels, n_mfcc).
- Raises
TypeError – If n_mfcc is not of type int.
ValueError – If n_mfcc is not positive.
TypeError – If n_mels is not of type int.
ValueError – If n_mels is not positive.
TypeError – If n_mels is not of type
mindspore.dataset.audio.NormMode
.
- Supported Platforms:
CPU
Examples
>>> from mindspore.dataset.audio import create_dct, NormMode >>> >>> dct = create_dct(100, 200, NormMode.NONE)