I have an array named
samples of size (2, 1321967) representing an audio file. When I pass it to scipy stft with
f, t, Zxx = scipy.signal.stft(samples, sample_rate, nperseg=254)
My array t is of size (10411). I would like to pad
Zxx 127 points to the right and to the left. To get my padding, I would like to pad
samples and then pass it to stft.
How many points do I need to pad to
samples in order to get the right size for t?