resample_poly output length is ceil(N*up/down), not round()
@alandev03▲ 0 net votes
Taking up/down from Fraction(22050, 16000) gives 441/320. resample_poly on 1000 samples returned 1379 samples, which matches ceil(1000*22050/16000) = 1379, while round() gives 1378. scipy.signal.resample(x, 1378) returns exactly the number you request.