static void __vcd_server_result_cb(vcp_result_event_e event, int* result_id, int count, const char* all_result,
const char* non_fixed_result, const char* nlu_result, const char* msg, void *user_data)
{
- if (VCD_STATE_PROCESSING != vcd_config_get_service_state()) {
- if (VCD_RECOGNITION_MODE_RESTART_CONTINUOUSLY != vcd_client_get_recognition_mode()) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Current state is not 'Processing' and mode is not 'Restart continuously'");
- return;
- }
- }
-
vc_info_parser_unset_result(vcd_client_manager_get_exclusive());
vcd_client_manager_set_result_text(all_result);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to process do action : %d", ret);
} else {
+ vcd_config_set_service_state(VCD_STATE_PROCESSING);
+ vcdc_send_service_state(VCD_STATE_PROCESSING);
SLOG(LOG_DEBUG, TAG_VCD, "[Server SUCCESS] Process do action");
}