pub mod bench;
pub(crate) mod decode;
pub(crate) mod mel;
pub(crate) mod model;
pub(crate) mod worker;
use crate::error::AudioError;
fn stt_error(message: impl Into<String>) -> AudioError {
AudioError::Stt { provider: "MLX".into(), message: message.into() }
}
fn mlx_err(context: &'static str) -> impl Fn(mlx_rs::error::Exception) -> AudioError {
move |e| stt_error(format!("{context}: {e}"))
}