Python equivalent of Matlab's resample()
Question:
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.
Answers:
There’s a blog ‘Audio Resampling in Python‘ about this. Both resampy and scipy.signal have a resample function implementation in different ways.
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)
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.
There’s a blog ‘Audio Resampling in Python‘ about this. Both resampy and scipy.signal have a resample function implementation in different ways.
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)