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 __TTS_CONFIG_PARSER_H_
16 #define __TTS_CONFIG_PARSER_H_
19 #include <libxml/parser.h>
27 TTS_CONFIG_VOICE_TYPE_MALE = 1, /**< Male */
28 TTS_CONFIG_VOICE_TYPE_FEMALE = 2, /**< Female */
29 TTS_CONFIG_VOICE_TYPE_CHILD = 3, /**< Child */
30 TTS_CONFIG_VOICE_TYPE_USER_DEFINED = 4 /**< Engine defined */
31 } tts_config_voice_type_e;
57 /* Get engine information */
58 int tts_parser_get_engine_info(const char* path, tts_engine_info_s** engine_info);
60 int tts_parser_free_engine_info(tts_engine_info_s* engine_info);
63 int tts_parser_load_config(tts_config_s** config_info);
65 int tts_parser_unload_config(tts_config_s* config_info);
67 int tts_parser_set_engine(const char* engine_id, const char* setting, const char* language, int type);
69 int tts_parser_set_voice(const char* language, int type);
71 int tts_parser_set_auto_voice(bool value);
73 int tts_parser_set_speech_rate(int value);
75 int tts_parser_set_pitch(int value);
77 int tts_parser_find_config_changed(char** engine, char**setting, bool* auto_voice, char** language, int* voice_type,
78 int* speech_rate, int* pitch);
80 int tts_parser_copy_xml(const char* original, const char* destination);
86 #endif /* __TTS_CONFIG_PARSER_H_ */