Skip to content

Instantly share code, notes, and snippets.

@ketanhdoshi
Last active November 17, 2021 03:56
Show Gist options
  • Save ketanhdoshi/5290a48e516fdb6c03e42b3a643e70c0 to your computer and use it in GitHub Desktop.
Save ketanhdoshi/5290a48e516fdb6c03e42b3a643e70c0 to your computer and use it in GitHub Desktop.
Mel Spectrogram Decibel
# use the decibel scale to get the final Mel Spectrogram
mel_sgram = librosa.amplitude_to_db(mel_scale_sgram, ref=np.min)
librosa.display.specshow(mel_sgram, sr=sample_rate, x_axis='time', y_axis='mel')
plt.colorbar(format='%+2.0f dB')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment