/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
#ifndef __STT_DEFS_H__
#define __STT_DEFS_H__
+#include <tzplatform_config.h>
+
#ifdef __cplusplus
extern "C" {
#endif
* Definition for Dbus
*******************************************************************************************/
-#define STT_CLIENT_SERVICE_NAME "com.samsung.voice.sttclient"
-#define STT_CLIENT_SERVICE_OBJECT_PATH "/com/samsung/voice/sttclient"
-#define STT_CLIENT_SERVICE_INTERFACE "com.samsung.voice.sttclient"
+#define STT_CLIENT_SERVICE_NAME "org.tizen.voice.sttclient"
+#define STT_CLIENT_SERVICE_OBJECT_PATH "/org/tizen/voice/sttclient"
+#define STT_CLIENT_SERVICE_INTERFACE "org.tizen.voice.sttclient"
+
+#define STT_SERVER_SERVICE_NAME "org.tizen.voice.sttserver"
+#define STT_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/sttserver"
+#define STT_SERVER_SERVICE_INTERFACE "org.tizen.voice.sttserver"
-#define STT_SETTING_SERVICE_NAME "com.samsung.voice.sttsetting"
-#define STT_SETTING_SERVICE_OBJECT_PATH "/com/samsung/voice/sttsetting"
-#define STT_SETTING_SERVICE_INTERFACE "com.samsung.voice.sttsetting"
+#define STT_SERVER_CUSTOM_SERVICE_NAME "org.tizen.voice.sttservercustom"
+#define STT_SERVER_CUSTOM_SERVICE_OBJECT_PATH "/org/tizen/voice/sttservercustom"
+#define STT_SERVER_CUSTOM_SERVICE_INTERFACE "org.tizen.voice.sttservercustom"
-#define STT_SERVER_SERVICE_NAME "service.connect.sttserver"
-#define STT_SERVER_SERVICE_OBJECT_PATH "/com/samsung/voice/sttserver"
-#define STT_SERVER_SERVICE_INTERFACE "com.samsung.voice.sttserver"
+/******************************************************************************************
+* Definitions for Vconf Keys
+*******************************************************************************************/
+#define STT_ENGINE_DB_DEFAULT "db/voice/stt/engine/default"
+#define STT_ENGINE_DB_CUSTOM "db/voice/stt/engine/custom"
/******************************************************************************************
* Message Definition for Client
#define STT_METHOD_HELLO "stt_method_hello"
#define STT_METHOD_INITIALIZE "stt_method_initialize"
#define STT_METHOD_FINALIZE "stt_method_finalilze"
+#define STT_METHOD_SET_CURRENT_ENGINE "stt_method_set_current_engine"
#define STT_METHOD_GET_SUPPORT_LANGS "stt_method_get_support_langs"
#define STT_METHOD_GET_CURRENT_LANG "stt_method_get_current_lang"
-#define STT_METHOD_IS_PARTIAL_SUPPORTED "stt_method_is_partial_result_supported"
-#define STT_METHOD_GET_AUDIO_VOLUME "stt_method_audio_volume"
+#define STT_METHOD_IS_TYPE_SUPPORTED "stt_method_is_recognition_type_supported"
+#define STT_METHOD_CHECK_APP_AGREED "stt_method_check_app_agreed"
+#define STT_METHOD_SET_PRIVATE_DATA "stt_method_set_private_data"
+#define STT_METHOD_GET_PRIVATE_DATA "stt_method_get_private_data"
+
+#define STT_METHOD_SET_START_SOUND "stt_method_set_start_sound"
+#define STT_METHOD_UNSET_START_SOUND "stt_method_unset_start_sound"
+#define STT_METHOD_SET_STOP_SOUND "stt_method_set_stop_sound"
+#define STT_METHOD_UNSET_STOP_SOUND "stt_method_unset_stop_sound"
#define STT_METHOD_START "stt_method_start"
#define STT_METHOD_STOP "stt_method_stop"
#define STT_METHOD_CANCEL "stt_method_cancel"
+#define STT_METHOD_START_FILE_RECONITION "stt_method_start_recognition"
#define STTD_METHOD_RESULT "sttd_method_result"
-#define STTD_METHOD_PARTIAL_RESULT "sttd_method_partial_result"
#define STTD_METHOD_ERROR "sttd_method_error"
#define STTD_METHOD_HELLO "sttd_method_hello"
#define STTD_METHOD_SET_STATE "sttd_method_set_state"
-#define STTD_METHOD_GET_STATE "sttd_method_get_state"
+#define STTD_METHOD_SET_VOLUME "sttd_method_set_volume"
+#define STTD_METHOD_SPEECH_STATUS "sttd_method_speech_status"
-#define STTD_METHOD_STOP_BY_DAEMON "sttd_method_stop_by_daemon"
/******************************************************************************************
-* Message Definition for Setting
+* Defines for configuration
*******************************************************************************************/
-#define STT_SETTING_METHOD_HELLO "stt_setting_method_hello"
-#define STT_SETTING_METHOD_INITIALIZE "stt_setting_method_initialize"
-#define STT_SETTING_METHOD_FINALIZE "stt_setting_method_finalilze"
-#define STT_SETTING_METHOD_GET_ENGINE_LIST "stt_setting_method_get_engine_list"
-#define STT_SETTING_METHOD_GET_ENGINE "stt_setting_method_get_engine"
-#define STT_SETTING_METHOD_SET_ENGINE "stt_setting_method_set_engine"
-#define STT_SETTING_METHOD_GET_LANG_LIST "stt_setting_method_get_lang_list"
-#define STT_SETTING_METHOD_GET_DEFAULT_LANG "stt_setting_method_get_default_lang"
-#define STT_SETTING_METHOD_SET_DEFAULT_LANG "stt_setting_method_set_default_lang"
-#define STT_SETTING_METHOD_GET_PROFANITY "stt_setting_method_get_profanity"
-#define STT_SETTING_METHOD_SET_PROFANITY "stt_setting_method_set_profanity"
-#define STT_SETTING_METHOD_GET_PUNCTUATION "stt_setting_method_get_punctuation"
-#define STT_SETTING_METHOD_SET_PUNCTUATION "stt_setting_method_set_punctuation"
-#define STT_SETTING_METHOD_GET_SILENCE "stt_setting_method_get_silence_detection"
-#define STT_SETTING_METHOD_SET_SILENCE "stt_setting_method_set_silence_detection"
-#define STT_SETTING_METHOD_GET_ENGINE_SETTING "stt_setting_method_get_engine_setting"
-#define STT_SETTING_METHOD_SET_ENGINE_SETTING "stt_setting_method_set_engine_setting"
+#define STT_CONFIG_BASE tzplatform_mkpath(TZ_USER_HOME, "share/.voice")
+#define STT_CONFIG tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt-config.xml")
+#define STT_DEFAULT_CONFIG tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/stt-config.xml")
+
+#define STT_TIME_INFO_PATH tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt-time.xml")
+
+#define STT_DEFAULT_ENGINE tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/engine")
+#define STT_DEFAULT_ENGINE_INFO tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/engine-info")
+#define STT_DEFAULT_ENGINE_SETTING tzplatform_mkpath(TZ_SYS_RO_SHARE, "/voice/stt/1.0/engine-setting")
+
+#define STT_HOME tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt")
+#define STT_DOWNLOAD_BASE tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt/1.0")
+#define STT_DOWNLOAD_ENGINE_INFO tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt/1.0/engine-info")
+
+#define STT_BASE_LANGUAGE "en_US"
+
+#define STT_RETRY_COUNT 5
+
+#define STT_FEATURE_PATH "tizen.org/feature/speech.recognition"
+#define STT_MIC_FEATURE_PATH "tizen.org/feature/microphone"
+
+#define STT_PRIVILEGE_RECORDER "http://tizen.org/privilege/recorder"
+#define STT_PRIVILEGE_APPLAUNCH "http://tizen.org/privilege/appmanager.launch"
#ifdef __cplusplus
}