How can I remove distortion introduced by librosa griffin lim?
You need to use a window function that is centered so that the windowed signal is zero-phase, i.e. it is perfectly symmetrical around the middle of the window. In this case, you can use the hann window, which is a raised cosine window with non-zero endpoints. D = librosa.stft(samples, n_fft=nperseg, hop_length=overlap, win_length=nperseg, window=scipy.signal.windows.hann) spect, _ … Read more