2 * Copyright (c) 2011-2016 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.
18 /* For multi-user support */
19 #include <tzplatform_config.h>
26 /******************************************************************************************
28 *******************************************************************************************/
30 #define TTS_CLIENT_SERVICE_NAME "org.tizen.tts"
31 #define TTS_CLIENT_SERVICE_OBJECT_PATH "/org/tizen/tts"
32 #define TTS_CLIENT_SERVICE_INTERFACE "org.tizen.tts"
34 #define TTS_SERVER_SERVICE_NAME "org.tizen.voice.ttsserver"
35 #define TTS_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/ttsserver"
36 #define TTS_SERVER_SERVICE_INTERFACE "org.tizen.voice.ttsserver"
38 #define TTS_NOTI_SERVER_SERVICE_NAME "org.tizen.voice.ttsnotiserver"
39 #define TTS_NOTI_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/ttsnotiserver"
40 #define TTS_NOTI_SERVER_SERVICE_INTERFACE "org.tizen.voice.ttsnotiserver"
42 #define TTS_SR_SERVER_SERVICE_NAME "org.tizen.voice.ttssrserver"
43 #define TTS_SR_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/ttssrserver"
44 #define TTS_SR_SERVER_SERVICE_INTERFACE "org.tizen.voice.ttssrserver"
46 #define TTS_INTERRUPT_SERVER_SERVICE_NAME "org.tizen.voice.ttsinterruptserver"
47 #define TTS_INTERRUPT_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/ttsinterruptserver"
48 #define TTS_INTERRUPT_SERVER_SERVICE_INTERFACE "org.tizen.voice.ttsinterruptserver"
50 /******************************************************************************************
51 * Message Definition for APIs
52 *******************************************************************************************/
54 #define TTS_METHOD_HELLO "tts_method_hello"
55 #define TTS_METHOD_INITIALIZE "tts_method_initialize"
56 #define TTS_METHOD_FINALIZE "tts_method_finalilze"
57 #define TTS_METHOD_GET_SUPPORT_VOICES "tts_method_get_support_voices"
58 #define TTS_METHOD_GET_CURRENT_VOICE "tts_method_get_current_voice"
59 #define TTS_METHOD_ADD_QUEUE "tts_method_add_queue"
60 #define TTS_METHOD_PLAY "tts_method_play"
61 #define TTS_METHOD_STOP "tts_method_stop"
62 #define TTS_METHOD_PAUSE "tts_method_pause"
63 #define TTS_METHOD_PLAY_PCM "tts_method_play_pcm"
64 #define TTS_METHOD_STOP_PCM "tts_method_stop_pcm"
65 #define TTS_METHOD_ADD_PCM "tts_method_add_pcm"
67 #define TTS_METHOD_SET_PRIVATE_DATA "tts_method_set_private_data"
68 #define TTS_METHOD_GET_PRIVATE_DATA "tts_method_get_private_data"
69 #define TTS_METHOD_SET_CREDENTIAL "tts_method_set_credential"
71 #define TTSD_METHOD_HELLO "ttsd_method_hello"
72 #define TTSD_METHOD_UTTERANCE_STARTED "ttsd_method_utterance_started"
73 #define TTSD_METHOD_UTTERANCE_COMPLETED "ttsd_method_utterance_completed"
74 #define TTSD_METHOD_ERROR "ttsd_method_error"
75 #define TTSD_METHOD_SET_STATE "ttsd_method_set_state"
78 /******************************************************************************************
79 * Defines for configuration
80 *******************************************************************************************/
82 #define TTS_CONFIG_BASE tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "/share/.voice")
83 #define TTS_CONFIG tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "/share/.voice/tts-config.xml")
84 #define TTS_DEFAULT_CONFIG tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/tts/1.0/tts-config.xml")
86 #define TTS_DEFAULT_ENGINE tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/tts/1.0/engine")
87 #define TTS_DEFAULT_ENGINE_INFO tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/tts/1.0/engine-info")
88 #define TTS_DEFAULT_ENGINE_SETTING tzplatform_mkpath(tzplatform_getid("TZ_SYS_RO_SHARE"), "/voice/tts/1.0/engine-setting")
90 #define TTS_HOME tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "/share/.voice/tts")
91 #define TTS_DOWNLOAD_BASE tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "/share/.voice/tts/1.0")
92 #define TTS_DOWNLOAD_ENGINE_INFO tzplatform_mkpath(tzplatform_getid("TZ_USER_HOME"), "share/.voice/tts/1.0/engine-info")
94 #define TTS_BASE_LANGUAGE "en_US"
96 #define TTS_RETRY_COUNT 5
97 #define TTS_RETRY_MIN_COUNT 2
98 #define TTS_CONNECTION_RETRY_COUNT 10
100 #define TTS_SPEED_MIN 1
101 #define TTS_SPEED_NORMAL 8
102 #define TTS_SPEED_MAX 15
104 #define TTS_PITCH_MIN 1
105 #define TTS_PITCH_NORMAL 8
106 #define TTS_PITCH_MAX 15
108 #define TTS_FEATURE_PATH "tizen.org/feature/speech.synthesis"
110 /******************************************************************************************
111 * Defines for vconf key
112 *******************************************************************************************/
114 #define TTS_ACCESSIBILITY_KEY VCONFKEY_SETAPPL_ACCESSIBILITY_TTS
116 #define TTS_LANGSET_KEY VCONFKEY_LANGSET
118 #define TTS_ENGINE_DB_DEFAULT "db/voice/tts/engine/default"
121 /******************************************************************************************
122 * Defines for log tag
123 *******************************************************************************************/
124 #define TAG_TTSCONFIG "ttsconfig"
131 #endif /* _TTS_DEFS_H__ */