use rust_whisper_lib; pub fn channel( mut flags: rust_whisper_lib::Flags, handler_fn: F, stream: std::sync::mpsc::Receiver>, ) where F: FnMut(Result) + Send + 'static { flags.model_path = None; flags.model_buffer = Some(include_bytes!("../../models/ggml-small.en.bin").to_vec()); rust_whisper_lib::channel(flags.clone(), handler_fn, stream); } pub fn wav( mut flags: rust_whisper_lib::Flags, handler_fn: F ) where F: FnMut(Result) + Send + 'static { flags.model_path = None; flags.model_buffer = Some(include_bytes!("../../models/ggml-distil-medium.en.bin").to_vec()); rust_whisper_lib::wav(flags.clone(), handler_fn, flags.wav.unwrap()); }