Last active
November 17, 2021 03:56
-
-
Save ketanhdoshi/5290a48e516fdb6c03e42b3a643e70c0 to your computer and use it in GitHub Desktop.
Mel Spectrogram Decibel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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