2

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.

Anand PA
  • 105
  • 2
  • 8

2 Answers2

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