From: sandrohanea Date: Wed, 22 Mar 2023 19:47:09 +0000 (+0100) Subject: fixed language auto-detection for state provided processing (#627) X-Git-Tag: upstream/1.7.4~1542 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d4fa0d92ad0ec13f50400af72218f7de1ad41833;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp fixed language auto-detection for state provided processing (#627) Co-authored-by: Sandro Hanea --- diff --git a/whisper.cpp b/whisper.cpp index 4d0245b6..fbb9e842 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -2855,7 +2855,7 @@ int whisper_lang_auto_detect_with_state( } // run the encoder - if (whisper_encode(ctx, seek, n_threads) != 0) { + if (whisper_encode_with_state(ctx, state, seek, n_threads) != 0) { fprintf(stderr, "%s: failed to encode\n", __func__); return -6; }