mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-16 19:09:05 +01:00
fixed language auto-detection for state provided processing (#627)
Co-authored-by: Sandro Hanea <sandrohanea@microsoft.com>
This commit is contained in:
parent
a5e60c019d
commit
d4fa0d92ad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user