Skip to main content

normalize_remote_audio

Function normalize_remote_audio 

Source
pub async fn normalize_remote_audio(
    body: BoundedAudioBody,
    format: EncodedAudioFormat,
    limits: RemoteAudioLimits,
    op: &OpContext,
    provider: &str,
) -> Result<NormalizedAudio>
Expand description

Normalize provider audio bytes into mono i16 PCM under shared limits.

format must come from capability/request context — MIME headers alone are not trusted. Format mismatches fail with ProviderError::InvalidProviderPayload.