2 * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd All Rights Reserved
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
15 #ifndef __STT_DEFS_H__
16 #define __STT_DEFS_H__
18 #include <tzplatform_config.h>
24 /******************************************************************************************
26 *******************************************************************************************/
28 #define STT_CLIENT_SERVICE_NAME "org.tizen.stt.client"
29 #define STT_CLIENT_SERVICE_OBJECT_PATH "/org/tizen/stt/client"
30 #define STT_CLIENT_SERVICE_INTERFACE "org.tizen.stt.client"
32 #define STT_SERVER_SERVICE_NAME "org.tizen.voice.sttserver"
33 #define STT_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/sttserver"
34 #define STT_SERVER_SERVICE_INTERFACE "org.tizen.voice.sttserver"
37 /******************************************************************************************
38 * Message Definition for Client
39 *******************************************************************************************/
41 #define STT_METHOD_HELLO "stt_method_hello"
42 #define STT_METHOD_INITIALIZE "stt_method_initialize"
43 #define STT_METHOD_FINALIZE "stt_method_finalilze"
44 #define STT_METHOD_SET_CURRENT_ENGINE "stt_method_set_current_engine"
45 #define STT_METHOD_GET_SUPPORT_LANGS "stt_method_get_support_langs"
46 #define STT_METHOD_GET_CURRENT_LANG "stt_method_get_current_lang"
47 #define STT_METHOD_IS_TYPE_SUPPORTED "stt_method_is_recognition_type_supported"
48 #define STT_METHOD_CHECK_APP_AGREED "stt_method_check_app_agreed"
50 #define STT_METHOD_SET_START_SOUND "stt_method_set_start_sound"
51 #define STT_METHOD_UNSET_START_SOUND "stt_method_unset_start_sound"
52 #define STT_METHOD_SET_STOP_SOUND "stt_method_set_stop_sound"
53 #define STT_METHOD_UNSET_STOP_SOUND "stt_method_unset_stop_sound"
55 #define STT_METHOD_START "stt_method_start"
56 #define STT_METHOD_STOP "stt_method_stop"
57 #define STT_METHOD_CANCEL "stt_method_cancel"
58 #define STT_METHOD_START_FILE_RECONITION "stt_method_start_recognition"
60 #define STTD_METHOD_RESULT "sttd_method_result"
61 #define STTD_METHOD_ERROR "sttd_method_error"
62 #define STTD_METHOD_HELLO "sttd_method_hello"
63 #define STTD_METHOD_SET_STATE "sttd_method_set_state"
64 #define STTD_METHOD_GET_STATE "sttd_method_get_state"
66 /******************************************************************************************
67 * Defines for configuration
68 *******************************************************************************************/
70 #define STT_AUDIO_VOLUME_PATH "/tmp/stt_vol"
72 #define STT_TIME_INFO_PATH tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt-time.xml")
74 #define STT_USR_BASE "/usr/lib/voice"
75 #define STT_OPT_BASE "/opt/usr/data/voice"
77 #define STT_DEFAULT_CONFIG STT_USR_BASE"/stt/1.0/stt-config.xml"
78 #define STT_CONFIG tzplatform_mkpath(TZ_USER_HOME, "share/.voice/stt-config.xml")
80 #define STT_DEFAULT_ENGINE STT_USR_BASE"/stt/1.0/engine"
81 #define STT_DOWNLOAD_ENGINE STT_OPT_BASE"/stt/1.0/engine"
83 #define STT_DEFAULT_ENGINE_INFO STT_USR_BASE"/stt/1.0/engine-info"
84 #define STT_DOWNLOAD_ENGINE_INFO STT_OPT_BASE"/stt/1.0/engine-info"
86 #define STT_DEFAULT_ENGINE_SETTING STT_USR_BASE"/stt/1.0/engine-setting"
87 #define STT_DOWNLOAD_ENGINE_SETTING STT_OPT_BASE"/stt/1.0/engine-setting"
89 #define STT_BASE_LANGUAGE "en_US"
91 #define STT_RETRY_COUNT 5
93 #define STT_FEATURE_PATH "tizen.org/feature/speech.recognition"
94 #define STT_MIC_FEATURE_PATH "tizen.org/feature/microphone"
100 #endif /* __STT_DEFS_H__ */