/*
-* 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
extern "C" {
#endif
-typedef int (*synth_result_callback)(ttsp_result_event_e event, const void* data, unsigned int data_size,
- ttsp_audio_type_e audio_type, int rate, void *user_data);
/*
* tts Engine Agent Interfaces
*/
/** Init engine agent */
-int ttsd_engine_agent_init(synth_result_callback result_cb);
+int ttsd_engine_agent_init();
/** Release engine agent */
int ttsd_engine_agent_release();
-/** Set current engine */
-int ttsd_engine_agent_initialize_current_engine();
-
/** load current engine */
int ttsd_engine_agent_load_current_engine();
+/** Set callbacks of the current engine */
+int ttsd_engine_agent_set_private_data_set_cb(ttse_private_data_set_cb callback);
+int ttsd_engine_agent_set_private_data_requested_cb(ttse_private_data_requested_cb callback);
+
/** Unload current engine */
int ttsd_engine_agent_unload_current_engine();
int ttsd_engine_agent_set_default_pitch(int pitch);
+int ttsd_engine_agent_is_credential_needed(int uid, bool* credential_needed);
+
int ttsd_engine_set_private_data(const char* key, const char* data);
int ttsd_engine_get_private_data(const char* key, char** data);
+int ttsd_engine_check_app_agreed(const char* appid, bool* is_agreed);
+
/*
* TTS Engine Interfaces for client
*/
int ttsd_engine_unload_voice(const char* lang, int vctype);
-int ttsd_engine_start_synthesis(const char* lang, int vctype, const char* text, int speed, void* user_param);
+int ttsd_engine_start_synthesis(const char* lang, int vctype, const char* text, int speed, const char* appid, const char* credential, void* user_param);
int ttsd_engine_cancel_synthesis();