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.
15 #ifndef __TTSD_CONFIG_H_
16 #define __TTSD_CONFIG_H_
25 TTS_CONFIG_TYPE_ENGINE,
26 TTS_CONFIG_TYPE_VOICE,
27 TTS_CONFIG_TYPE_SPEED,
28 TTS_CONFIG_TYPE_PITCH,
29 TTS_CONFIG_TYPE_BACKGROUND_VOLUME_RATIO
32 typedef void (*ttsd_config_changed_cb)(tts_config_type_e type, const char* str_param, int int_param, double double_param);
34 typedef void (*ttsd_config_screen_reader_changed_cb)(bool value);
36 int ttsd_config_initialize(ttsd_config_changed_cb config_cb);
38 int ttsd_config_finalize();
40 int ttsd_config_set_screen_reader_callback(ttsd_config_screen_reader_changed_cb sr_cb);
42 int ttsd_config_get_default_engine(char** engine_id);
44 int ttsd_config_set_default_engine(const char* engine_id);
46 int ttsd_config_get_default_voice(char** language, int* type);
48 int ttsd_config_get_default_speed(int* speed);
50 int ttsd_config_get_default_pitch(int* pitch);
52 int ttsd_config_get_bg_volume_ratio(double* ratio);
54 int ttsd_config_save_error(int uid, int uttid, const char* lang, int vctype, const char* text,
55 const char* func, int line, const char* message);
61 #endif /* __TTSD_CONFIG_H_ */