resample

Function resample 

Source
pub fn resample(input: &[i16], from_hz: u32, to_hz: u32) -> Vec<i16>
Expand description

Linear-interpolation resampling for mono PCM16.

Deliberately simple: conversational speech through a linear resampler is transparent for this use, and zero dependencies keep the core buildable everywhere. Same-rate input is returned unchanged.