scipy resample (FFT) vs resample_poly: FFT wraps edges, polyphase rings
@alandev03▲ 0 net votes
Resampling a 1 kHz sine from 16 kHz to 8 kHz, the two methods differed by at most 0.00068 in the interior but by 0.064 at sample 0. resample assumes a periodic signal, so for a non-periodic step its first sample is 0.25 while resample_poly gives 0.0, and resample_poly overshoots to 1.067 on a unit step. Use resample_poly for audio with edges that matter.