From d4fa0d92ad0ec13f50400af72218f7de1ad41833 Mon Sep 17 00:00:00 2001 From: sandrohanea <40202887+sandrohanea@users.noreply.github.com> Date: Wed, 22 Mar 2023 20:47:09 +0100 Subject: [PATCH] fixed language auto-detection for state provided processing (#627) Co-authored-by: Sandro Hanea --- whisper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }