How to make the y-axis of a spectrogram logarithmic?


Is there a way to make the y-axis for a spectrogram logarithmic? I couldn’t find an option for it and was doing it explicitly.

Consider for e.g. the spectrogram of this audio:

spectrogram

which after log adjustment would look like

logAdjustedSpectrogram