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 __STT_CONFIG_PARSER_H_
16 #define __STT_CONFIG_PARSER_H_
19 #include <libxml/parser.h>
33 bool support_silence_detection;
42 bool silence_detection;
52 } stt_result_time_info_s;
54 /* Get engine information */
55 int stt_parser_get_engine_info(const char* path, stt_engine_info_s** engine_info);
57 int stt_parser_free_engine_info(stt_engine_info_s* engine_info);
60 int stt_parser_load_config(stt_config_s** config_info);
62 int stt_parser_unload_config(stt_config_s* config_info);
64 int stt_parser_set_engine(const char* engine_id, const char* setting, const char* language, bool silence, bool credential);
66 int stt_parser_set_language(const char* language);
68 int stt_parser_set_auto_lang(bool value);
70 int stt_parser_set_silence_detection(bool value);
72 int stt_parser_find_config_changed(char** engine, char** setting, int* auto_lang, char** language, int* silence, int* credential);
76 int stt_parser_set_time_info(GSList* time_list);
78 int stt_parser_get_time_info(GSList** time_list);
80 int stt_parser_clear_time_info();
87 #endif /* __STT_CONFIG_PARSER_H_ */