adk-audio 3.0.0

Audio intelligence and pipeline orchestration for ADK-Rust agents
Documentation
//! Apple-only MLX Whisper inference building blocks.

pub mod bench;
pub(crate) mod decode;
pub(crate) mod mel;
pub(crate) mod model;
pub(crate) mod worker;

use crate::error::AudioError;

/// `AudioError::Stt` from the MLX provider with a plain message.
fn stt_error(message: impl Into<String>) -> AudioError {
    AudioError::Stt { provider: "MLX".into(), message: message.into() }
}

/// Maps an MLX error to `AudioError::Stt` with `context` prefixed.
fn mlx_err(context: &'static str) -> impl Fn(mlx_rs::error::Exception) -> AudioError {
    move |e| stt_error(format!("{context}: {e}"))
}