Pass aheads by reference, add dtw_mem_size param, rustfmt

This commit is contained in:
arizhih 2024-05-17 02:05:12 +02:00
parent da6b410439
commit 482860d0d6
5 changed files with 45 additions and 37 deletions

View file

@ -11,7 +11,7 @@ fn main() -> Result<(), &'static str> {
// Load a context and model.
let ctx = WhisperContext::new_with_params(
"example/path/to/model/whisper.cpp/models/ggml-base.en.bin",
&mut WhisperContextParameters::default(),
WhisperContextParameters::default(),
)
.expect("failed to load model");
// Create a state