Is there a python function that achieves resampling in the way MATLAB's resample() does? I've looked into scikits.samplerate's resample function but I'm not quite getting similar results.
Asked
Active
Viewed 5,054 times
2
-
2Code please, in both languages, showing what you mean. – Ahmed Fasih Jan 21 '17 at 11:51
2 Answers
2
There's a blog 'Audio Resampling in Python' about this. Both resampy and scipy.signal have a resample function implementation in different ways.

Mike Tang
- 36
- 4
0
The best function that is equivalent to MATLAB resample is as such:
MATLAB:
resample( Data_Low_Freq_v, Upsample_n ,Downsample_n );
Python:
import scipy.signal as ssg
ssg.resample_poly(Data_Low_Freq_v, Upsample_n, Downsample_n)

Ohads
- 63
- 1
- 1
- 6