/*
-* 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 __TTS_CONFIG_PARSER_H_
#define __TTS_CONFIG_PARSER_H_
TTS_CONFIG_VOICE_TYPE_FEMALE = 2, /**< Female */
TTS_CONFIG_VOICE_TYPE_CHILD = 3, /**< Child */
TTS_CONFIG_VOICE_TYPE_USER_DEFINED = 4 /**< Engine defined */
-}tts_config_voice_type_e;
+} tts_config_voice_type_e;
typedef struct {
char* language;
int type;
-}tts_config_voice_s;
+} tts_config_voice_s;
typedef struct {
char* name;
char* setting;
GSList* voices;
bool pitch_support;
-}tts_engine_info_s;
+ bool need_credential;
+ unsigned int text_size;
+} tts_engine_info_s;
typedef struct {
char* engine_id;
int type;
int speech_rate;
int pitch;
-}tts_config_s;
+ bool credential;
+ double bg_volume_ratio;
+} tts_config_s;
/* Get engine information */
int tts_parser_set_pitch(int value);
+int tts_parser_set_bg_volume_ratio(double value);
+
int tts_parser_find_config_changed(char** engine, char**setting, bool* auto_voice, char** language, int* voice_type,
- int* speech_rate, int* pitch);
+ int* speech_rate, int* pitch, double* bg_volume_ratio);
+
+int tts_parser_copy_xml(const char* original, const char* destination);
+int tts_parser_reset();
#ifdef __cplusplus
}