7baa96a25821ae9974a6b20344380bb2ed0f9689
[platform/core/uifw/stt.git] / common / stt_defs.h
1 /*
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.
12 */
13
14
15 #ifndef __STT_DEFS_H__
16 #define __STT_DEFS_H__
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 /******************************************************************************************
23 * Definition for Dbus
24 *******************************************************************************************/
25
26 #define STT_CLIENT_SERVICE_NAME         "org.tizen.stt.client"
27 #define STT_CLIENT_SERVICE_OBJECT_PATH  "/org/tizen/stt/client"
28 #define STT_CLIENT_SERVICE_INTERFACE    "org.tizen.stt.client"
29
30 #define STT_SERVER_SERVICE_NAME         "org.tizen.voice.sttserver"
31 #define STT_SERVER_SERVICE_OBJECT_PATH  "/org/tizen/voice/sttserver"
32 #define STT_SERVER_SERVICE_INTERFACE    "org.tizen.voice.sttserver"
33
34
35 /******************************************************************************************
36 * Message Definition for Client
37 *******************************************************************************************/
38
39 #define STT_METHOD_HELLO                "stt_method_hello"
40 #define STT_METHOD_INITIALIZE           "stt_method_initialize"
41 #define STT_METHOD_FINALIZE             "stt_method_finalilze"
42 #define STT_METHOD_SET_CURRENT_ENGINE   "stt_method_set_current_engine"
43 #define STT_METHOD_GET_SUPPORT_LANGS    "stt_method_get_support_langs"
44 #define STT_METHOD_GET_CURRENT_LANG     "stt_method_get_current_lang"
45 #define STT_METHOD_IS_TYPE_SUPPORTED    "stt_method_is_recognition_type_supported"
46 #define STT_METHOD_CHECK_APP_AGREED     "stt_method_check_app_agreed"
47
48 #define STT_METHOD_SET_START_SOUND      "stt_method_set_start_sound"
49 #define STT_METHOD_UNSET_START_SOUND    "stt_method_unset_start_sound"
50 #define STT_METHOD_SET_STOP_SOUND       "stt_method_set_stop_sound"
51 #define STT_METHOD_UNSET_STOP_SOUND     "stt_method_unset_stop_sound"
52
53 #define STT_METHOD_START                "stt_method_start"
54 #define STT_METHOD_STOP                 "stt_method_stop"
55 #define STT_METHOD_CANCEL               "stt_method_cancel"
56 #define STT_METHOD_START_FILE_RECONITION "stt_method_start_recognition"
57
58 #define STTD_METHOD_RESULT              "sttd_method_result"
59 #define STTD_METHOD_ERROR               "sttd_method_error"
60 #define STTD_METHOD_HELLO               "sttd_method_hello"
61 #define STTD_METHOD_SET_STATE           "sttd_method_set_state"
62 #define STTD_METHOD_GET_STATE           "sttd_method_get_state"
63
64 /******************************************************************************************
65 * Defines for configuration
66 *******************************************************************************************/
67
68 #define STT_AUDIO_VOLUME_PATH           "/tmp/stt_vol"
69
70 #define STT_TIME_INFO_PATH              "/opt/home/app/.voice/stt-time.xml"
71
72 #define STT_USR_BASE                    "/usr/lib/voice"
73 #define STT_OPT_BASE                    "/opt/usr/data/voice"
74
75 #define STT_DEFAULT_CONFIG              STT_USR_BASE"/stt/1.0/stt-config.xml"
76 #define STT_CONFIG                      "/opt/home/app/.voice/stt-config.xml"
77
78 #define STT_DEFAULT_ENGINE              STT_USR_BASE"/stt/1.0/engine"
79 #define STT_DOWNLOAD_ENGINE             STT_OPT_BASE"/stt/1.0/engine"
80
81 #define STT_DEFAULT_ENGINE_INFO         STT_USR_BASE"/stt/1.0/engine-info"
82 #define STT_DOWNLOAD_ENGINE_INFO        STT_OPT_BASE"/stt/1.0/engine-info"
83
84 #define STT_DEFAULT_ENGINE_SETTING      STT_USR_BASE"/stt/1.0/engine-setting"
85 #define STT_DOWNLOAD_ENGINE_SETTING     STT_OPT_BASE"/stt/1.0/engine-setting"
86
87 #define STT_BASE_LANGUAGE               "en_US"
88
89 #define STT_RETRY_COUNT                 5
90
91 #define STT_FEATURE_PATH                "tizen.org/feature/speech.recognition"
92 #define STT_MIC_FEATURE_PATH            "tizen.org/feature/microphone"
93
94 #ifdef __cplusplus
95 }
96 #endif
97
98 #endif /* __STT_DEFS_H__ */