Using scipy stft, like this :
sample_rate, samples = scipy.io.wavfile.read(sample_dir/'original'/test_sample_name)
f, t, Zxx = scipy.signal.stft(samples.transpose(), sample_rate)
f.shape is equal to 129. My understanding is that this number represents the number of frequency at which we evaluate the Fourier Transform. How is it calculated? Can we fix this number?
fto be either equal to the hop sizeH = nperseg - noverlapor half the value ofnfft. No idea why. – Mossmyr Mar 03 '20 at 13:42