mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2023-11-04 02:52:44 +03:00
fixed language auto-detection for state provided processing (#627)
Co-authored-by: Sandro Hanea <sandrohanea@microsoft.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user