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>
32 bool support_silence_detection;
41 bool silence_detection;
51 } stt_result_time_info_s;
53 /* Get engine information */
54 int stt_parser_get_engine_info(const char* path, stt_engine_info_s** engine_info);
56 int stt_parser_free_engine_info(stt_engine_info_s* engine_info);
59 int stt_parser_load_config(stt_config_s** config_info);
61 int stt_parser_unload_config(stt_config_s* config_info);
63 int stt_parser_set_engine(const char* engine_id, const char* setting, const char* language, bool silence, bool credential);
65 int stt_parser_set_language(const char* language);
67 int stt_parser_set_auto_lang(bool value);
69 int stt_parser_set_silence_detection(bool value);
71 int stt_parser_find_config_changed(char** engine, char** setting, int* auto_lang, char** language, int* silence, int* credential);
75 int stt_parser_set_time_info(GSList* time_list);
77 int stt_parser_get_time_info(GSList** time_list);
79 int stt_parser_clear_time_info();
86 #endif /* __STT_CONFIG_PARSER_H_ */