ret = vc_get_current_language(&lang);
if (0 != ret || NULL == lang) {
- SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to get current laguage, ret(%d)", ret); //LCOV_EXCL_LINE
+ SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to get current language, ret(%d)", ret); //LCOV_EXCL_LINE
free(appid);
appid = NULL;
if (NULL != lang) {
return VC_ERROR_INVALID_STATE;
}
- /* check autority */
+ /* check authority */
vc_auth_state_e auth_state = VC_AUTH_STATE_NONE;
if (0 != vc_client_get_auth_state(g_vc, &auth_state)) {
SLOG(LOG_ERROR, TAG_VCC, "[ERROR] handle is not available");
}
if (0 != vc_dbus_request_auth_disable(g_vc->handle, mgr_pid)) {
- SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to authority disble");
+ SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to authority disable");
return VC_ERROR_OPERATION_FAILED;
}
return VC_ERROR_INVALID_STATE;
}
- /* get autority */
+ /* get authority */
vc_auth_state_e temp = VC_AUTH_STATE_NONE;
if (0 != vc_client_get_auth_state(g_vc, &temp)) {
SLOG(LOG_ERROR, TAG_VCC, "[ERROR] handle is not available");
DBusError err;
int ret;
- /* initialise the error value */
+ /* initialize the error value */
dbus_error_init(&err);
/* connect to the DBUS system bus, and check for errors */
vc_internal_state_e internal_state = -1;
vc_mgr_client_get_internal_state(g_vc_m, &internal_state);
if (internal_state != VC_INTERNAL_STATE_NONE) {
- SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invaid State : Internal state is NOT none : %d", internal_state);
+ SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invalid State : Internal state is NOT none : %d", internal_state);
return VC_ERROR_IN_PROGRESS_TO_RECORDING;
}
return VC_ERROR_PERMISSION_DENIED;
}
- /* Do not check state for 'restart continusly' mode */
+ /* Do not check state for 'restart continuously' mode */
vc_service_state_e service_state = -1;
vc_mgr_client_get_service_state(g_vc_m, &service_state);
vc_mgr_get_recognition_mode(&recognition_mode);
if (VC_RECOGNITION_MODE_RESTART_CONTINUOUSLY != recognition_mode) {
- SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invalid State: service state is not 'PROCESSING' and mode is not 'Restart continously'");
+ SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invalid State: service state is not 'PROCESSING' and mode is not 'Restart continuously'");
SLOG(LOG_DEBUG, TAG_VCM, "@@@");
return VC_ERROR_INVALID_STATE;
}
vc_mgr_client_set_service_state_changed_cb(g_vc_m, callback, user_data);
- SLOG(LOG_DEBUG, TAG_VCM, "[SUCCESS] Set sevice state changed callback");
+ SLOG(LOG_DEBUG, TAG_VCM, "[SUCCESS] Set service state changed callback");
return 0;
}
vc_mgr_client_use_callback(g_vc_m);
callback(pid, disp_text, utt_text, continuous, user_data);
vc_mgr_client_not_use_callback(g_vc_m);
- SLOG(LOG_DEBUG, TAG_VCM, "Dialog callback is called, disp_text(%s), utt)text(%s), continous(%d)", disp_text, utt_text, continuous);
+ SLOG(LOG_DEBUG, TAG_VCM, "Dialog callback is called, disp_text(%s), utt)text(%s), continuous(%d)", disp_text, utt_text, continuous);
} else {
SLOG(LOG_WARN, TAG_VCM, "[WARNING] Error callback is null");
}
client->cb_ref_count = 0;
- /* Authoriry */
+ /* Authority */
client->authorized_client_list = NULL;
client->valid_authorized_pid = -1;
client->start_by_client = false;
SLOG(LOG_DEBUG, TAG_VCM, "@@ vc mgr get request set private data : pid(%d) ", pid);
ret = __vc_mgr_cb_private_data_set(key, private_data);
} else {
- SLOG(LOG_ERROR, TAG_VCM, "@@ vc mgr get requset set private data : invalid pid ");
+ SLOG(LOG_ERROR, TAG_VCM, "@@ vc mgr get request set private data : invalid pid ");
}
DBusMessage *reply = NULL;
SLOG(LOG_DEBUG, TAG_VCM, "@@@ Owner Changed");
/* remove a rule for daemon error */
DBusError err;
- /* initialise the error value */
+ /* initialize the error value */
dbus_error_init(&err);
char rule_err[256] = {0, };
snprintf(rule_err, 256, "sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',type='signal',arg0='%s'", VC_SERVER_SERVICE_INTERFACE);
DBusError err;
int ret;
- /* initialise the error value */
+ /* initialize the error value */
dbus_error_init(&err);
/* connect to the DBUS system bus, and check for errors */
DBusError err;
int ret;
- /* initialise the error value */
+ /* initialize the error value */
dbus_error_init(&err);
/* connect to the DBUS system bus, and check for errors */
DBusError err;
int ret;
- /* initialise the error value */
+ /* initialize the error value */
dbus_error_init(&err);
/* connect to the DBUS system bus, and check for errors */
vc_deactivated_app_s* temp_app = NULL;
temp_app = (vc_deactivated_app_s*)calloc(1, sizeof(vc_deactivated_app_s));
if (NULL == temp_app) {
- SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allcation fail");
+ SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allocation fail");
if (NULL != temp_app_list) {
g_slist_free_full(temp_app_list, __vc_db_demandable_client_free);
vc_cmd_s* temp_cmd = NULL;
temp_cmd = (vc_cmd_s*)calloc(1, sizeof(vc_cmd_s));
if (NULL == temp_cmd) {
- SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allcation fail");
+ SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allocation fail");
if (NULL != temp_pid_list) {
g_slist_free_full(temp_pid_list, free);
temp_cmd = iter->data;
if (NULL == temp_cmd) {
- SLOG(LOG_ERROR, vc_db_tag(), "comamnd is NULL");
+ SLOG(LOG_ERROR, vc_db_tag(), "command is NULL");
break;
}
}
if (0 > hour || 24 <= hour || (0 == flag && 12 < hour)) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
return VC_ERROR_NONE;
}
if (0 > sidx || pmatch[0].rm_so < sidx) sidx = pmatch[0].rm_so;
if (0 > eidx || pmatch[0].rm_eo > eidx) eidx = pmatch[0].rm_eo;
} else if (0 < flag) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
return VC_ERROR_NONE;
}
min = atoi(tempstr);
if (0 > min || 60 <= min) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
return VC_ERROR_NONE;
}
}
if (!strcmp("en_US", lang)) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
free(lang);
lang = NULL;
return VC_ERROR_NONE;
sidx = pmatch[0].rm_so;
eidx = pmatch[0].rm_eo;
} else {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
return VC_ERROR_NONE;
}
}
if (!strcmp("en_US", lang)) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
free(lang);
lang = NULL;
return VC_ERROR_NONE;
td->tm_min = 0;
td->tm_sec = 0;
} else if (2 == g_time_flag) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
return VC_ERROR_NONE;
}
if ((0 == (year + 1900) % 4 && 0 != (year + 1900) % 100) || 0 == (year + 1900) % 400) max_day[1] = 29;
if (max_day[mon] < day || 1 > day) {
- SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+ SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
return VC_ERROR_NONE;
}
SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Time value is exist");
return ret;
} else if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
return ret;
}
SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Time value is exist");
return ret;
} else if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
return ret;
}
SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Time value is exist");
return ret;
} else if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
return ret;
}
SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Date value is exist");
return ret;
} else if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
return ret;
}
SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Date value is exist");
return ret;
} else if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
return ret;
}
ret = __vc_cmd_time_check(text, &td);
if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured in the check > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred in the check > (%d)", ret);
return ret;
}
ret = __vc_cmd_date_check(text, &td);
if (VC_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured in the check > (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred in the check > (%d)", ret);
return ret;
}
ret = vc_config_mgr_get_default_language(&lang);
if (0 != ret || NULL == lang) {
- SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to get current laguage, ret(%d) lang(%s)", ret, lang);
+ SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to get current language, ret(%d) lang(%s)", ret, lang);
return ret;
}
ret = app_info_get_localed_label(appid, lang, &temp_lable);
static int __vc_json_set_commands(JsonObject *root_obj, int type, char* invocation_name)
{
if (NULL == root_obj) {
- SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid paramget");
+ SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid parameter");
return VC_ERROR_INVALID_PARAMETER;
}
if (VC_COMMAND_TYPE_NONE > type || VC_COMMAND_TYPE_EXCLUSIVE < type) {
- SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid paramget, type(%d)", type);
+ SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid parameter, type(%d)", type);
return VC_ERROR_INVALID_PARAMETER;
}
}
if (0 != strncmp(cmd->appid, prev_appid, strlen(cmd->appid))) {
- //delete bacground commands with appid and type
+ //delete background commands with appid and type
ret = vc_db_delete_commands(cmd->pid, type, cmd->appid);
if (VC_ERROR_NONE != ret) {
SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to insert command into db, ret(%d) pid(%d) type(%d), appid(%s)", ret, cmd->pid, type, cmd->appid);
"(January)|(February)|(March)|(April)|(May)|(June)|(July)|(August)|(September)|(October)|(November)|(December)"};
const char *DATE_ABS3_REGEX[2] = {"([1-9]|[1-2][0-9]|3[0-1])일",
"([1-9]|[1-2][0-9]|3[0-1])(st|nd|rd|th)"};
-//today / tommorow / the day after tommorow
+//today / tomorrow / the day after tomorrow
const char *DATE_PHR1_REGEX[2] = {"(오늘)|(내일)|(모레)|(글피)",
- "(today)|(tommorow)|(the day after tommorow)"};
+ "(today)|(tomorrow)|(the day after tomorrow)"};
const char *DATE_PHR2_REGEX[2] = {"(이틀)|(사흘)|(나흘)|(닷새)|(엿새)|(이레)|(여드레)|(아흐레)|(열흘)",
"(이틀)|(사흘)|(나흘)|(닷새)|(엿새)|(이레)|(여드레)|(아흐레)|(열흘)"};
-//Monday / Tuesday / Wednesday / Thursday / Satruday / Sunday
+//Monday / Tuesday / Wednesday / Thursday / Saturday / Sunday
const char *DATE_PHR3_REGEX[2] = {"(월|화|수|목|금|토|일)(요일)?",
"(Mon|Tues|Wednes|Thurs|Fri|Satur|Sun)(day)?"};
#endif
-#endif
\ No newline at end of file
+#endif
* A main function of Voice Control Manager API records voice and gives responses for recognized voice commands.
* A Voice Control Manager application can start recording user's utterance and get responses from Voice Control engine service.
* The responses are dependent on the Voice Control engine service. For example, the engine service may send ASR(Automatic Speech Recognition) results or NLU(Natural Language Understanding) results.
- * Also, it may send plural results. Therefore, the application can get various recognition results from the engine service and handle them by showing responses to users or controling Voice Control applications.
- * Like this, the Voice Control Manager application takes a role of controlling Voice Control applcations.
+ * Also, it may send plural results. Therefore, the application can get various recognition results from the engine service and handle them by showing responses to users or controlling Voice Control applications.
+ * Like this, the Voice Control Manager application takes a role of controlling Voice Control applications.
* For this reason, developers who have an authority granted by Tizen platform can make the Voice Control Manager application.<br><br>
* To use of Voice Control Manager, use the following steps: <br>
* 1. Initialize <br>
if (0 == access(path, F_OK)) {
LOGD("Remove engine info xml(%s)", path);
if (0 != remove(path)) {
- LOGE("[ERROR] Fail to emove engine info xml(%s)", path);
+ LOGE("[ERROR] Fail to remove engine info xml(%s)", path);
}
}
int vc_cmd_get_nlu_json(vc_cmd_h vc_cmd, char** json);
/**
-* @brief Gets the datetime value from the setence.
+* @brief Gets the datetime value from the sentence.
* @since_tizen 3.0
*
* @param[in] text The sentence to analyze
*
* @remark This function can modify @a src_list by the result, So if you want to keep the content of @a src_list,
* make a copy of @a src_list before running this function. And also, you need to create the list handle of
-* @a dst_list before runnig this function, because this function does not create the handle internally.
+* @a dst_list before running this function, because this function does not create the handle internally.
*
* @return 0 on success, otherwise a negative error value
* @retval #VC_ERROR_NONE Successful
/**
* @platform
- * @brief Requests to do action as if utterence is spoken.
+ * @brief Requests to do action as if utterance is spoken.
* @since_tizen 5.0
*
* @privlevel platform
typedef void (*vc_setting_current_language_changed_cb)(const char* previous, const char* current, void* user_data);
/**
-* @brief Initialize voice control setting
+* @brief Initializes voice control setting
*
* @remarks If the function succeeds, @a vc mgr must be released with vc_setting_finalize().
*
int vc_setting_initialize(void);
/**
-* @brief Deinitialize vc setting
+* @brief Deinitializes vc setting
*
* @return 0 on success, otherwise a negative error value.
* @retval #VC_ERROR_NONE Success.
int vc_setting_deinitialize(void);
/**
-* @brief Get supported languages of current engine
+* @brief Gets supported languages of current engine
*
* @param[in] callback callback function
* @param[in] user_data User data to be passed to the callback function
int vc_setting_foreach_supported_languages(vc_setting_supported_language_cb callback, void* user_data);
/**
-* @brief Get the default language.
+* @brief Gets the default language.
*
* @remark If the function is success, @a language must be released with free() by you.
*
int vc_setting_get_language(char** language);
/**
-* @brief Set the default language.
+* @brief Sets the default language.
*
* @param[in] language language
*
int vc_setting_set_language(const char* language);
/**
-* @brief Set a automatic option of language.
+* @brief Sets a automatic option of language.
*
* @param[in] value The automatic option
*
int vc_setting_set_auto_language(bool value);
/**
-* @brief Get a automatic option of voice.
+* @brief Gets a automatic option of voice.
*
* @param[out] value The automatic option
*
int vc_setting_get_auto_language(bool* value);
/**
-* @brief Set voice control service enabled.
+* @brief Sets voice control service enabled.
*
* @param[in] value The enabled option
*
int vc_setting_set_enabled(bool value);
/**
-* @brief Get voice control service enabled.
+* @brief Gets voice control service enabled.
*
* @param[out] value The enabled option
*
int vcd_client_manager_set_demandable_client(int pid, GSList* client_list)
{
if (0 != g_slist_length(g_demandable_client)) {
- /* releaes data */
+ /* release data */
GSList *iter = NULL;
vc_demandable_client_s* temp_client;
iter = g_slist_nth(g_demandable_client, 0);
{
if (TRUE == waiting && pid != vcd_client_widget_get_foreground_pid()) {
- SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] pid(%d) is NOT forground pid", pid);
+ SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] pid(%d) is NOT foreground pid", pid);
return -1;
}
return VCD_ERROR_ENGINE_NOT_FOUND;
}
- /* initalize engine */
+ /* initialize engine */
ret = g_dynamic_engine.callbacks->initialize();
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[Engine Agent ERROR] Fail to initialize vc engine service");
return;
}
- SLOG(LOG_WARN, TAG_VCD, "[Recorder] focus state chagned to (%d) with reason (%s)", (int)focus_state, __get_focus_changed_reason_code(reason));
+ SLOG(LOG_WARN, TAG_VCD, "[Recorder] focus state changed to (%d) with reason (%s)", (int)focus_state, __get_focus_changed_reason_code(reason));
if (VCD_RECORDER_STATE_RECORDING == g_recorder_state && SOUND_STREAM_FOCUS_STATE_RELEASED == focus_state) {
SLOG(LOG_WARN, TAG_VCD, "[Recorder] Focus released as interrupt");
int ret = -1;
while (0 == sound_manager_get_next_device(device_list, &device)) {
if (0 != sound_manager_get_device_type(device, &type)) {
- SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device tyep");
+ SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device type");
continue;
}
if (0 != sound_manager_get_device_io_direction(device, &io_direction)) {
sound_device_type_e type;
if (is_connected) {
if (0 != sound_manager_get_device_type(device, &type)) {
- SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device tyep");
+ SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device type");
return;
}
if (type == SOUND_DEVICE_USB_AUDIO) {
audio_channel_e audio_ch;
audio_sample_type_e audio_type;
- SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] AUdio type(%d) rate(%d) channel(%d)", g_audio_type, g_audio_rate, g_audio_channel);
+ SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Audio type(%d) rate(%d) channel(%d)", g_audio_type, g_audio_rate, g_audio_channel);
switch (g_audio_channel) {
case 1: audio_ch = AUDIO_CHANNEL_MONO; break;
}
if (0 != g_slist_length(app_list)) {
- /* releaes data */
+ /* release data */
GSList *iter = NULL;
vc_deactivated_app_s* temp_app = NULL;
iter = g_slist_nth(app_list, 0);
}
/* priority filter */
- /* system > exclusive > widget > foreground > system_background > widget partial > foreground paritial > background */
+ /* system > exclusive > widget > foreground > system_background > widget partial > foreground partial > background */
int i = 0;
int* filtered_id = (int*)calloc(count, sizeof(int));
if (!filtered_id) {
temp_cmd = NULL;
}
} else {
- SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matached result(%d)", filtered_id[i]);
+ SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matched result(%d)", filtered_id[i]);
}
}
temp_cmd->parameter = strdup(non_fixed_result);
}
} else {
- SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT vaild. Parameter (%s)", temp_cmd->parameter);
+ SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT valid. Parameter (%s)", temp_cmd->parameter);
}
break;
case VC_CMD_FORMAT_NONFIXED_AND_FIXED:
temp_cmd->command = strdup(non_fixed_result);
}
} else {
- SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT vaild. Command (%s)", temp_cmd->command);
+ SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT valid. Command (%s)", temp_cmd->command);
}
break;
vc_cmd_destroy((vc_cmd_h)temp_cmd);
}
} else {
- SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matached result(%d)", result_id[i]);
+ SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matched result(%d)", result_id[i]);
}
}
static int __reset_waiting_for_widget_recording(void)
{
- SLOG(LOG_ERROR, TAG_VCD, "[Server] Reet waiting for widget recording");
+ SLOG(LOG_ERROR, TAG_VCD, "[Server] Reset waiting for widget recording");
// Delete timer to check that widget client is terminated
if (g_check_widget_client_timer) {
ecore_timer_del(g_check_widget_client_timer);
int ret = __start_internal_recognition();
if (0 != ret) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition : %d", ret);
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : %d", ret);
return ret;
}
return EINA_FALSE;
int ret = __start_internal_recognition();
if (0 != ret) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition : %d", ret);
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : %d", ret);
return ret;
}
return VCD_ERROR_INVALID_STATE;
}
- /* Reqeust do action to engine */
+ /* Request do action to engine */
if (VCD_SEND_EVENT_TYPE_TEXT == type)
ret = vcd_engine_process_text(pid, action);
else if (VCD_SEND_EVENT_TYPE_LIST_EVENT == type)
{
/* check if pid is valid */
if (false == vcd_client_is_available(pid)) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] pid(%d) is NOT forground client", pid);
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] pid(%d) is NOT foreground client", pid);
return VCD_ERROR_INVALID_PARAMETER;
}
SLOG(LOG_ERROR, TAG_VCD, "[Server INFO] start recording");
if (0 != __start_internal_recognition()) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition");
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition");
}
}
SLOG(LOG_WARN, TAG_VCD, "[Server] widget command is NOT available");
}
- SLOG(LOG_ERROR, TAG_VCD, "[Server] start internal recongition : %d", widget_command);
+ SLOG(LOG_ERROR, TAG_VCD, "[Server] start internal recognition : %d", widget_command);
int ret = __start_internal_recognition();
if (0 != ret) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition : %d", ret);
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : %d", ret);
ecore_timer_add(0, __vcd_request_show_tooltip, (void*)false);
}