/*
-* Copyright (c) 2011-2014 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* limitations under the License.
*/
-
+
#ifndef __STT_CONFIG_PARSER_H_
#define __STT_CONFIG_PARSER_H_
char* agreement;
GSList* languages;
bool support_silence_detection;
-}stt_engine_info_s;
+ bool need_credential;
+} stt_engine_info_s;
typedef struct {
char* engine_id;
bool auto_lang;
char* language;
bool silence_detection;
-}stt_config_s;
+ bool credential;
+} stt_config_s;
typedef struct {
int index;
char* text;
long start_time;
long end_time;
-}stt_result_time_info_s;
+} stt_result_time_info_s;
/* Get engine information */
int stt_parser_get_engine_info(const char* path, stt_engine_info_s** engine_info);
int stt_parser_unload_config(stt_config_s* config_info);
-int stt_parser_set_engine(const char* engine_id, const char* setting, const char* language, bool silence);
+int stt_parser_set_engine(const char* engine_id, const char* setting, const char* language, bool silence, bool credential);
int stt_parser_set_language(const char* language);
int stt_parser_set_silence_detection(bool value);
-int stt_parser_find_config_changed(char** engine, char** setting, int* auto_lang, char** language, int* silence);
+int stt_parser_find_config_changed(char** engine, char** setting, int* auto_lang, char** language, int* silence, int* credential);
/* Time info */