Skip to content

Commit

Permalink
fixed language auto-detection for state provided processing (ggergano…
Browse files Browse the repository at this point in the history
…v#627)

Co-authored-by: Sandro Hanea <[email protected]>
  • Loading branch information
sandrohanea and Sandro Hanea authored Mar 22, 2023
1 parent a5e60c0 commit d4fa0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d4fa0d9

Please sign in to comment.