|
|
|
@ -3100,6 +3100,9 @@ struct whisper_full_params whisper_full_default_params(enum whisper_sampling_str
|
|
|
|
|
/*.new_segment_callback =*/ nullptr,
|
|
|
|
|
/*.new_segment_callback_user_data =*/ nullptr,
|
|
|
|
|
|
|
|
|
|
/*.progress_callback =*/ nullptr,
|
|
|
|
|
/*.progress_callback_user_data =*/ nullptr,
|
|
|
|
|
|
|
|
|
|
/*.encoder_begin_callback =*/ nullptr,
|
|
|
|
|
/*.encoder_begin_callback_user_data =*/ nullptr,
|
|
|
|
|
|
|
|
|
@ -3807,6 +3810,10 @@ int whisper_full_with_state(
|
|
|
|
|
fprintf(stderr, "%s: progress = %3d%%\n", __func__, progress_prev);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (params.progress_callback) {
|
|
|
|
|
params.progress_callback(
|
|
|
|
|
ctx, ctx->state, progress_prev, params.progress_callback_user_data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// of only 1 second left, then stop
|
|
|
|
|
if (seek + 100 >= seek_end) {
|
|
|
|
@ -4395,6 +4402,9 @@ int whisper_full_parallel(
|
|
|
|
|
params_cur.new_segment_callback = nullptr;
|
|
|
|
|
params_cur.new_segment_callback_user_data = nullptr;
|
|
|
|
|
|
|
|
|
|
params_cur.progress_callback = nullptr;
|
|
|
|
|
params_cur.progress_callback_user_data = nullptr;
|
|
|
|
|
|
|
|
|
|
workers[i] = std::thread(whisper_full_with_state, ctx, states[i], std::move(params_cur), samples + start_samples, n_samples_cur);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|