Release version 0.1.41
[platform/core/uifw/stt.git] / common / stt_defs.h
1 /*
2 *  Copyright (c) 2012, 2013 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         "com.samsung.voice.sttclient"
27 #define STT_CLIENT_SERVICE_OBJECT_PATH  "/com/samsung/voice/sttclient"
28 #define STT_CLIENT_SERVICE_INTERFACE    "com.samsung.voice.sttclient"
29
30 #define STT_SETTING_SERVICE_NAME        "com.samsung.voice.sttsetting"
31 #define STT_SETTING_SERVICE_OBJECT_PATH "/com/samsung/voice/sttsetting"
32 #define STT_SETTING_SERVICE_INTERFACE   "com.samsung.voice.sttsetting"
33
34 #define STT_SERVER_SERVICE_NAME         "service.connect.sttserver"
35 #define STT_SERVER_SERVICE_OBJECT_PATH  "/com/samsung/voice/sttserver"
36 #define STT_SERVER_SERVICE_INTERFACE    "com.samsung.voice.sttserver"
37
38
39 /******************************************************************************************
40 * Message Definition for Client
41 *******************************************************************************************/
42
43 #define STT_METHOD_HELLO                "stt_method_hello"
44 #define STT_METHOD_INITIALIZE           "stt_method_initialize"
45 #define STT_METHOD_FINALIZE             "stt_method_finalilze"
46 #define STT_METHOD_GET_SUPPORT_LANGS    "stt_method_get_support_langs"
47 #define STT_METHOD_GET_CURRENT_LANG     "stt_method_get_current_lang"
48 #define STT_METHOD_IS_PARTIAL_SUPPORTED "stt_method_is_partial_result_supported"
49
50 #define STT_METHOD_START                "stt_method_start"
51 #define STT_METHOD_STOP                 "stt_method_stop"
52 #define STT_METHOD_CANCEL               "stt_method_cancel"
53 #define STT_METHOD_START_FILE_RECONITION "stt_method_start_recognition"
54
55 #define STTD_METHOD_RESULT              "sttd_method_result"
56 #define STTD_METHOD_PARTIAL_RESULT      "sttd_method_partial_result"
57 #define STTD_METHOD_ERROR               "sttd_method_error"
58 #define STTD_METHOD_HELLO               "sttd_method_hello"
59 #define STTD_METHOD_SET_STATE           "sttd_method_set_state"
60 #define STTD_METHOD_GET_STATE           "sttd_method_get_state"
61
62 /******************************************************************************************
63 * Message Definition for Setting
64 *******************************************************************************************/
65
66 #define STT_SETTING_METHOD_HELLO                "stt_setting_method_hello"
67 #define STT_SETTING_METHOD_INITIALIZE           "stt_setting_method_initialize"
68 #define STT_SETTING_METHOD_FINALIZE             "stt_setting_method_finalilze"
69 #define STT_SETTING_METHOD_GET_ENGINE_LIST      "stt_setting_method_get_engine_list"
70 #define STT_SETTING_METHOD_GET_ENGINE           "stt_setting_method_get_engine"
71 #define STT_SETTING_METHOD_SET_ENGINE           "stt_setting_method_set_engine"
72 #define STT_SETTING_METHOD_GET_LANG_LIST        "stt_setting_method_get_lang_list"
73 #define STT_SETTING_METHOD_GET_DEFAULT_LANG     "stt_setting_method_get_default_lang"
74 #define STT_SETTING_METHOD_SET_DEFAULT_LANG     "stt_setting_method_set_default_lang"
75 #define STT_SETTING_METHOD_GET_PROFANITY        "stt_setting_method_get_profanity"
76 #define STT_SETTING_METHOD_SET_PROFANITY        "stt_setting_method_set_profanity"
77 #define STT_SETTING_METHOD_GET_PUNCTUATION      "stt_setting_method_get_punctuation"
78 #define STT_SETTING_METHOD_SET_PUNCTUATION      "stt_setting_method_set_punctuation"
79 #define STT_SETTING_METHOD_GET_SILENCE          "stt_setting_method_get_silence_detection"
80 #define STT_SETTING_METHOD_SET_SILENCE          "stt_setting_method_set_silence_detection"
81 #define STT_SETTING_METHOD_GET_ENGINE_SETTING   "stt_setting_method_get_engine_setting"
82 #define STT_SETTING_METHOD_SET_ENGINE_SETTING   "stt_setting_method_set_engine_setting"
83
84 /******************************************************************************************
85 * Temp file for audio volume
86 *******************************************************************************************/
87
88 #define STT_AUDIO_VOLUME_PATH                   "/tmp/stt_vol"
89
90 #ifdef __cplusplus
91 }
92 #endif
93
94 #endif /* __STT_DEFS_H__ */