Add TTS mode
[platform/core/uifw/tts.git] / server / ttsd_config.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 __TTSD_CONFIG_H_
16 #define __TTSD_CONFIG_H_
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 typedef void (*ttsd_config_lang_changed_cb)(const char* langauge, int type);
23
24 int ttsd_config_initialize(ttsd_config_lang_changed_cb callback);
25
26 int ttsd_config_finalize();
27
28 int ttsd_config_update_language();
29
30 int ttsd_config_get_default_engine(char** engine_id);
31
32 int ttsd_config_set_default_engine(const char* engine_id);
33
34 int ttsd_config_get_default_voice(char** language, int* type);
35
36 int ttsd_config_set_default_voice(const char* langauge, int type);
37
38 int ttsd_config_get_default_speed(int* speed);
39
40 int ttsd_config_set_default_speed(int speed);
41
42 int ttsd_config_save_error(int uid, int uttid, const char* lang, int vctype, const char* text, 
43                            const char* func, int line, const char* message);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif /* __TTSD_CONFIG_H_ */