This commit is contained in:
Roy Shilkrot 2023-09-19 12:21:36 -04:00
parent 44811674b7
commit 886b067c37

View File

@ -505,9 +505,10 @@ obs_properties_t *transcription_filter_properties(void *data)
obs_property_list_add_int(list, "WARNING", LOG_WARNING); obs_property_list_add_int(list, "WARNING", LOG_WARNING);
obs_properties_add_bool(ppts, "log_words", "Log output words"); obs_properties_add_bool(ppts, "log_words", "Log output words");
obs_properties_add_bool(ppts, "caption_to_stream", "Stream captions"); obs_properties_add_bool(ppts, "caption_to_stream", "Stream captions");
obs_property_t *step_by_step_processing = obs_property_t *step_by_step_processing = obs_properties_add_bool(
obs_properties_add_bool(ppts, "step_by_step_processing", "Step-by-step processing"); ppts, "step_by_step_processing",
obs_properties_add_int_slider(ppts, "step_size_msec", "Step size (ms)", 500, "Step-by-step processing (⚠️ processing will increase)");
obs_properties_add_int_slider(ppts, "step_size_msec", "Step size (ms)", 1000,
BUFFER_SIZE_MSEC, 50); BUFFER_SIZE_MSEC, 50);
obs_property_set_modified_callback(step_by_step_processing, [](obs_properties_t *props, obs_property_set_modified_callback(step_by_step_processing, [](obs_properties_t *props,