if (0 != vcd_client_command_collect_command()) {
SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] Fail to collect command");
+ /* Send error cb to manager */
+ int pid = vcd_client_widget_get_foreground_pid();
+ if (-1 != pid)
+ vcdc_send_error_signal_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_engine.error.proc_fail");
return VCD_ERROR_OPERATION_FAILED;
}
/* 3. Set command to engine */
ret = vcd_engine_set_commands();
if (0 != ret) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to collect command : %d", ret);
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to set commands : %d", ret);
+ /* Send error cb to manager */
+ int pid = vcd_client_widget_get_foreground_pid();
+ if (-1 != pid)
+ vcdc_send_error_signal_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_engine.error.proc_fail");
return VCD_ERROR_OPERATION_FAILED;
}
ret = vcd_engine_recognize_start(stop_by_silence);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : result(%d)", ret);
+ /* Send error cb to manager */
+ int pid = vcd_client_widget_get_foreground_pid();
+ if (-1 != pid)
+ vcdc_send_error_signal_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_engine.error.proc_fail");
return VCD_ERROR_OPERATION_FAILED;
}
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recorder : result(%d)", ret);
vcd_engine_recognize_cancel();
+ /* Send error cb to manager */
+ int pid = vcd_client_widget_get_foreground_pid();
+ if (-1 != pid)
+ vcdc_send_error_signal_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_engine.error.proc_fail");
return ret;
}