resample
Resample audio from one sample rate to another.
Uses high-quality sinc interpolation for best audio quality.
Return
Resampled audio samples at target rate
Parameters
samples
Input audio samples (mono, float in -1.0, 1.0 range)
from Rate
Source sample rate in Hz (e.g., 44100)
to Rate
Target sample rate in Hz (e.g., 16000)