From fa19bc419557055e11b819f7bb6a77b6eb68e894 Mon Sep 17 00:00:00 2001 From: "M. A. Ali" <73258591+MightyStud@users.noreply.github.com> Date: Mon, 20 Nov 2023 20:52:27 +0200 Subject: [PATCH] whisper : update example in whisper.h (#1529) update the example in the header, previous examples deprecated. --- whisper.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/whisper.h b/whisper.h index 8454098..41eb88a 100644 --- a/whisper.h +++ b/whisper.h @@ -50,7 +50,9 @@ extern "C" { // // ... // - // struct whisper_context * ctx = whisper_init_from_file("/path/to/ggml-base.en.bin"); + // whisper_context_params cparams = whisper_context_default_params(); + // + // struct whisper_context * ctx = whisper_init_from_file_with_params("/path/to/ggml-base.en.bin", cparams); // // if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) { // fprintf(stderr, "failed to process audio\n");