mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-30 17:58:40 +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
|
// 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__);
|
fprintf(stderr, "%s: failed to encode\n", __func__);
|
||||||
return -6;
|
return -6;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user