master
Bel LaPointe 2023-12-20 23:45:23 -05:00
parent af1171b228
commit 48c0565b1f
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ pub fn wav<F>(
handler_fn: F handler_fn: F
) 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-distil-medium-v2.bin").to_vec()); 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()); rust_whisper_lib::wav(flags.clone(), handler_fn, flags.wav.unwrap());
} }