Skip to content

Instantly share code, notes, and snippets.

@ketanhdoshi
Last active February 14, 2021 02:51
Show Gist options
  • Save ketanhdoshi/d947c8c1af73f46a30bc0172e67b58ff to your computer and use it in GitHub Desktop.
Save ketanhdoshi/d947c8c1af73f46a30bc0172e67b58ff to your computer and use it in GitHub Desktop.
Mel Scale
# use the mel-scale instead of raw frequency
sgram_mag, _ = librosa.magphase(sgram)
mel_scale_sgram = librosa.feature.melspectrogram(S=sgram_mag, sr=sample_rate)
librosa.display.specshow(mel_scale_sgram)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment