pub fn load_audio_at_rate(path: &str, target_rate: u32) -> Result<Vec<f32>>Expand description
Load audio file and return mono f32 PCM samples at a configurable sample rate.
Accepts WAV / MP3 / FLAC / M4A (AAC) / OGG (Vorbis). Non-mono sources are downmixed by averaging channels; sample rate is converted via sinc resampling. Useful for TTS speaker encoder which expects 24kHz input.