/*
-* 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_MANAGER_H_
#define __TTS_CONFIG_MANAGER_H_
typedef bool (*tts_config_supported_voice_cb)(const char* engine_id, const char* language, int type, void* user_data);
typedef void (*tts_config_engine_changed_cb)(const char* engine_id, const char* setting,
- const char* language, int voice_type, bool auto_voice, void* user_data);
+ const char* language, int voice_type, bool auto_voice, bool need_credential, void* user_data);
typedef void (*tts_config_voice_changed_cb)(const char* before_language, int before_voice_type,
const char* current_language, int current_voice_type,
typedef void (*tts_config_pitch_changed_cb)(int value, void* user_data);
+typedef void (*tts_config_bg_volume_ratio_changed_cb)(double value, void* user_data);
+
typedef void (*tts_config_screen_reader_changed_cb)(bool value);
tts_config_voice_changed_cb voice_cb,
tts_config_speech_rate_changed_cb speech_cb,
tts_config_pitch_changed_cb pitch_cb,
+ tts_config_bg_volume_ratio_changed_cb bg_volume_ratio_cb,
void* user_data);
int tts_config_mgr_unset_callback(int uid);
int tts_config_mgr_set_pitch(int value);
+int tts_config_mgr_get_bg_volume_ratio(double *value);
+int tts_config_mgr_set_bg_volume_ratio(double value);
+
bool tts_config_check_default_engine_is_valid(const char* engine);
bool tts_config_check_default_voice_is_valid(const char* language, int type);
char* tts_config_get_message_path(int mode, int pid);
+int tts_config_mgr_get_max_text_size(unsigned int* size);
+
#ifdef __cplusplus
}