pub fn resample_to(pcm: &[i16], from_rate: u32, to_rate: u32) -> Vec<i16>Expand description
Linear-interpolation resampler to the 24 kHz Opus downlink rate. OuteTTS
already emits 24 kHz mono, so this is a near-no-op fast path when rates match;
it exists so a different TTS engine (a ?engine= sidecar at another rate)
still produces a correctly-pitched downlink rather than a chipmunk artifact.