Merge with master branch
[platform/core/uifw/tts.git] / common / tts_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 _TTS_DEFS_H__
16 #define _TTS_DEFS_H__
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 /******************************************************************************************
23 * Definition for IPC
24 *******************************************************************************************/
25
26 #define TTS_CLIENT_SERVICE_NAME         "com.samsung.voice.ttsclient"
27 #define TTS_CLIENT_SERVICE_OBJECT_PATH  "/com/samsung/voice/ttsclient"
28 #define TTS_CLIENT_SERVICE_INTERFACE    "com.samsung.voice.ttsclient"
29
30 #define TTS_SETTING_SERVICE_NAME        "com.samsung.voice.ttssetting"
31 #define TTS_SETTING_SERVICE_OBJECT_PATH "/com/samsung/voice/ttssetting"
32 #define TTS_SETTING_SERVICE_INTERFACE   "com.samsung.voice.ttssetting"
33
34 #define TTS_SERVER_SERVICE_NAME         "service.connect.ttsserver"
35 #define TTS_SERVER_SERVICE_OBJECT_PATH  "/com/samsung/voice/ttsserver"
36 #define TTS_SERVER_SERVICE_INTERFACE    "com.samsung.voice.ttsserver"
37
38 #define TTS_NOTI_SERVER_SERVICE_NAME            "service.connect.ttsnotiserver"
39 #define TTS_NOTI_SERVER_SERVICE_OBJECT_PATH     "/com/samsung/voice/ttsnotiserver"
40 #define TTS_NOTI_SERVER_SERVICE_INTERFACE       "com.samsung.voice.ttsnotiserver"
41
42 #define TTS_SR_SERVER_SERVICE_NAME              "service.connect.ttssrserver"
43 #define TTS_SR_SERVER_SERVICE_OBJECT_PATH       "/com/samsung/voice/ttssrserver"
44 #define TTS_SR_SERVER_SERVICE_INTERFACE         "com.samsung.voice.ttssrserver"
45
46 /******************************************************************************************
47 * Message Definition for APIs
48 *******************************************************************************************/
49
50 #define TTS_METHOD_HELLO                "tts_method_hello"
51 #define TTS_METHOD_INITIALIZE           "tts_method_initialize"
52 #define TTS_METHOD_FINALIZE             "tts_method_finalilze"
53 #define TTS_METHOD_GET_SUPPORT_VOICES   "tts_method_get_support_voices"
54 #define TTS_METHOD_GET_CURRENT_VOICE    "tts_method_get_current_voice"
55 #define TTS_METHOD_ADD_QUEUE            "tts_method_add_queue"
56 #define TTS_METHOD_PLAY                 "tts_method_play"
57 #define TTS_METHOD_STOP                 "tts_method_stop"
58 #define TTS_METHOD_PAUSE                "tts_method_pause"
59
60 #define TTSD_METHOD_HELLO               "ttsd_method_hello"
61 #define TTSD_METHOD_UTTERANCE_STARTED   "ttsd_method_utterance_started"
62 #define TTSD_METHOD_UTTERANCE_COMPLETED "ttsd_method_utterance_completed"
63 #define TTSD_METHOD_ERROR               "ttsd_method_error"
64 #define TTSD_METHOD_SET_STATE           "ttsd_method_set_state"
65 #define TTSD_METHOD_GET_STATE           "ttsd_method_get_state"
66         
67 #define MESSAGE_FILE_PATH               "/opt/home/app/.voice/tts"
68
69 /******************************************************************************************
70 * Message Definition for Setting
71 *******************************************************************************************/
72
73 #define TTS_SETTING_METHOD_HELLO                "tts_setting_method_hello"
74 #define TTS_SETTING_METHOD_INITIALIZE           "tts_setting_method_initialize"
75 #define TTS_SETTING_METHOD_FINALIZE             "tts_setting_method_finalilze"
76 #define TTS_SETTING_METHOD_GET_ENGINE_LIST      "tts_setting_method_get_engine_list"
77 #define TTS_SETTING_METHOD_GET_ENGINE           "tts_setting_method_get_engine"
78 #define TTS_SETTING_METHOD_SET_ENGINE           "tts_setting_method_set_engine"
79 #define TTS_SETTING_METHOD_GET_VOICE_LIST       "tts_setting_method_get_voice_list"
80 #define TTS_SETTING_METHOD_GET_DEFAULT_VOICE    "tts_setting_method_get_voice"
81 #define TTS_SETTING_METHOD_SET_DEFAULT_VOICE    "tts_setting_method_set_voice"
82 #define TTS_SETTING_METHOD_GET_DEFAULT_SPEED    "tts_setting_method_get_speed"
83 #define TTS_SETTING_METHOD_SET_DEFAULT_SPEED    "tts_setting_method_set_speed"
84 #define TTS_SETTING_METHOD_GET_ENGINE_SETTING   "tts_setting_method_get_engine_setting"
85 #define TTS_SETTING_METHOD_SET_ENGINE_SETTING   "tts_setting_method_set_engine_setting"
86
87 #if 0
88 /******************************************************************************************
89 * Message Definition for tts-daemon internal
90 *******************************************************************************************/
91
92 #define TTSD_SIGNAL_NEXT_SYNTHESIS      "ttsd_signal_start_synthesis"
93 #endif
94
95 #ifdef __cplusplus
96 }
97 #endif
98
99 #endif  /* _TTS_DEFS_H__ */