Release version 0.1.60
[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 enum {
23         TTS_CONFIG_TYPE_ENGINE,
24         TTS_CONFIG_TYPE_VOICE,
25         TTS_CONFIG_TYPE_SPEED
26 }tts_config_type_e;
27
28 typedef void (*ttsd_config_changed_cb)(tts_config_type_e type, const char* str_param, int int_param); 
29
30 int ttsd_config_initialize(ttsd_config_changed_cb callback);
31
32 int ttsd_config_finalize();
33
34 int ttsd_config_update_language();
35
36 int ttsd_config_get_default_engine(char** engine_id);
37
38 int ttsd_config_set_default_engine(const char* engine_id);
39
40 int ttsd_config_get_default_voice(char** language, int* type);
41
42 int ttsd_config_set_default_voice(const char* langauge, int type);
43
44 int ttsd_config_get_default_speed(int* speed);
45
46 int ttsd_config_set_default_speed(int speed);
47
48 int ttsd_config_save_error(int uid, int uttid, const char* lang, int vctype, const char* text, 
49                            const char* func, int line, const char* message);
50
51 #ifdef __cplusplus
52 }
53 #endif
54
55 #endif /* __TTSD_CONFIG_H_ */