functional_create_dct {torchaudio}R Documentation

DCT transformation matrix (functional)

Description

Create a DCT transformation matrix with shape (n_mels, n_mfcc), normalized depending on norm. https://en.wikipedia.org/wiki/Discrete_cosine_transform

Usage

functional_create_dct(n_mfcc, n_mels, norm = NULL)

Arguments

n_mfcc

(int): Number of mfc coefficients to retain

n_mels

(int): Number of mel filterbanks

norm

(chr or NULL): Norm to use (either 'ortho' or NULL)

Value

tensor: The transformation matrix, to be right-multiplied to row-wise data of size (n_mels, n_mfcc).


[Package torchaudio version 0.3.1 Index]