Add safe wrapper for raw dtw parameters

This commit is contained in:
arizhih 2024-05-16 18:58:48 +02:00
parent dcfcbced18
commit da6b410439
5 changed files with 135 additions and 51 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",
WhisperContextParameters::default(),
&mut WhisperContextParameters::default(),
)
.expect("failed to load model");
// Create a state