d = librosa.core.stft(sections[1], n_fft = 2048, window='hamming')
librosa.display.specshow(librosa.amplitude_to_db(d,ref=np.max),y_axis='log', x_axis='time')
d.shape
fs = 44100
f, t, Zxx = scipy.signal.stft(sections[1],fs ,window='hamming', nfft=2048, nperseg=2048, noverlap=1536)
librosa.display.specshow(librosa.amplitude_to_db(Zxx[:, :5],ref=np.max),y_axis='log', x_axis='time')
Zxx.shape
the length of FFT is set to 2048, I think the first column should be just the same, but it's not.
and the noverlap parameter is not in librosa, I think in librosa noverlap can be calculated by hop_length with the equation hop_length + noverlap = nfft
Besides, I think both algorithms pads zeros by default and I didn't change it.
By the way, len(sections[1]) is 2050
I would be very appreciate if anyone can answer my question!