baked channel uses tiny
parent
f326f077ce
commit
19b0a4b385
|
|
@ -6,7 +6,7 @@ pub fn channel<F>(
|
||||||
stream: std::sync::mpsc::Receiver<Vec<f32>>,
|
stream: std::sync::mpsc::Receiver<Vec<f32>>,
|
||||||
) where F: FnMut(Result<rust_whisper_lib::Transcribed, String>) + Send + 'static {
|
) where F: FnMut(Result<rust_whisper_lib::Transcribed, String>) + Send + 'static {
|
||||||
flags.model_path = None;
|
flags.model_path = None;
|
||||||
flags.model_buffer = Some(include_bytes!("../../models/ggml-small.en.bin").to_vec());
|
flags.model_buffer = Some(include_bytes!("../../models/ggml-tiny.en.bin").to_vec());
|
||||||
rust_whisper_lib::channel(flags.clone(), handler_fn, stream);
|
rust_whisper_lib::channel(flags.clone(), handler_fn, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue