d52ad493ac9116da73621c3236b9418eda02af08
[platform/core/uifw/tts.git] / client / tts_dbus.h
1 /*
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.
12 */
13
14
15 #ifndef __TTS_DBUS_H_
16 #define __TTS_DBUS_H_
17
18 #include "tts.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 int tts_dbus_open_connection(unsigned int uid);
25
26 int tts_dbus_close_connection(unsigned int uid);
27
28 int tts_dbus_stop_listening(unsigned int uid);
29
30 int tts_dbus_request_hello(unsigned int uid, tts_mode_e mode);
31
32 int tts_dbus_request_hello_sync(unsigned int uid);
33
34 int tts_dbus_request_initialize(unsigned int uid, tts_mode_e mode, bool* credential_needed);
35
36 int tts_dbus_request_finalize(unsigned int uid);
37
38 int tts_dbus_request_add_text(unsigned int uid, const char* text, const char* lang, int vctype, int speed, int uttid, const char* credential);
39
40 int tts_dbus_request_play(unsigned int uid, const char* credential);
41
42 int tts_dbus_request_stop(unsigned int uid);
43
44 int tts_dbus_request_pause(unsigned int uid);
45
46 int tts_dbus_request_set_private_data(unsigned int uid, const char* key, const char* data);
47
48 int tts_dbus_request_get_private_data(unsigned int uid, const char* key, char** data);
49
50 int tts_dbus_request_play_pcm(unsigned int uid);
51
52 int tts_dbus_request_stop_pcm(unsigned int uid);
53
54 int tts_dbus_request_add_pcm(unsigned int uid, int event, const char* data, int data_size, int audio_type, int rate);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif /* __TTS_DBUS_H_ */