Skip to content

Instantly share code, notes, and snippets.

@dmastropole
Last active October 17, 2019 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmastropole/7553212007950bae029a5d2c3072ee93 to your computer and use it in GitHub Desktop.
Save dmastropole/7553212007950bae029a5d2c3072ee93 to your computer and use it in GitHub Desktop.
DCT
# Perform a DCT
from essentia.standard import DCT
dct = DCT(inputSize=n_bands, outputSize=13)
mfccs = dct(log_mels)
plt.bar(np.arange(len(mfccs)), mfccs, align='center')
plt.title('Mel-Frequency Cepstrum')
plt.xlabel('Cosines')
plt.ylabel('Coefficients')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment