sandrohanea Sandro Hanea commited on
Commit
826963f
·
unverified ·
1 Parent(s): 72b08c2

fixed language auto-detection for state provided processing (#627)

Browse files
Files changed (1) hide show
  1. whisper.cpp +1 -1
whisper.cpp CHANGED
@@ -2855,7 +2855,7 @@ int whisper_lang_auto_detect_with_state(
2855
  }
2856
 
2857
  // run the encoder
2858
- if (whisper_encode(ctx, seek, n_threads) != 0) {
2859
  fprintf(stderr, "%s: failed to encode\n", __func__);
2860
  return -6;
2861
  }
 
2855
  }
2856
 
2857
  // run the encoder
2858
+ if (whisper_encode_with_state(ctx, state, seek, n_threads) != 0) {
2859
  fprintf(stderr, "%s: failed to encode\n", __func__);
2860
  return -6;
2861
  }