From: M. A. Ali Date: Mon, 20 Nov 2023 18:52:27 +0000 (+0200) Subject: whisper : update example in whisper.h (#1529) X-Git-Tag: upstream/1.7.4~1242 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fa19bc419557055e11b819f7bb6a77b6eb68e894;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp whisper : update example in whisper.h (#1529) update the example in the header, previous examples deprecated. --- diff --git a/whisper.h b/whisper.h index 84540989..41eb88a6 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");