The invention discloses a self-adaptive arbitrary
resampling method and device, and relates to the technical field of
digital signal processing, and the method comprises the steps: designing a basic filter based on a windowing function interpolation
algorithm, and optimizing the basic filter into an arbitrary group
delay filter; the method comprises the following steps: calculating a
resampling factor through an input
signal sampling rate and an output
signal sampling rate, adaptively adjusting a
resampling parameter of a filter, calculating an output
signal length in combination with an input signal length, judging a resampling periodicity through an error threshold value to determine a cycle period point number and a storage mark, and finally traversing output sampling points. Filter coefficients are obtained in three
modes of coefficient real-time calculation, calculation and storage and calling, and target sampling rate signals are output after
convolution filtering and
gain correction. According to the method, the problems of limited precision and large
operand of the existing arbitrary resampling method are solved, and the sampling precision and efficiency are considered at the same time.