tizen beta release
[platform/core/uifw/stt.git] / client / stt_dbus.h
1 /*
2 * Copyright (c) 2011 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_DBUS_H_
16 #define __STT_DBUS_H_
17
18 #include "stt.h"
19 #include "stt_main.h"
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 int stt_dbus_open_connection();
26
27 int stt_dbus_close_connection();
28
29
30 int stt_dbus_request_initialize(int uid);
31
32 int stt_dbus_request_finalize(int uid);
33
34 int stt_dbus_request_get_support_langs(int uid, stt_h stt, stt_supported_language_cb callback, void* user_data);
35
36 int stt_dbus_request_get_default_lang(int uid, char** language);
37
38 int stt_dbus_request_get_audio_volume(int uid, float* volume); 
39
40 int stt_dbus_request_is_partial_result_supported(int uid, bool* partial_result);
41
42 int stt_dbus_request_start(int uid, const char* lang, const char* type, int profanity, int punctuation, int silence);
43
44 int stt_dbus_request_stop(int uid);
45
46 int stt_dbus_request_cancel(int uid);
47
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* __STT_DBUS_H_ */