X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=server%2Fttsd_main.h;h=306e799bd98cffec6d00127e1ace250e17351d56;hb=8a567079ea0677de5c4da1666ec8b5ad86a3bce7;hp=d4401298e54c3d5a8d6ae329aee1ff83a8ee6386;hpb=1e23418a90946e052feac17ae746ab799d2e8f8b;p=platform%2Fcore%2Fuifw%2Ftts.git diff --git a/server/ttsd_main.h b/server/ttsd_main.h index d440129..306e799 100644 --- a/server/ttsd_main.h +++ b/server/ttsd_main.h @@ -25,7 +25,7 @@ #include #include -#include "ttsp.h" +#include "ttse.h" #include "tts_defs.h" #ifdef __cplusplus @@ -33,7 +33,6 @@ extern "C" { #endif /* for debug message */ -#define DATA_DEBUG #define ENGINE_AGENT_DEBUG typedef enum { @@ -57,7 +56,8 @@ typedef enum { typedef enum { TTSD_MODE_DEFAULT = 0, /**< Default mode for normal application */ TTSD_MODE_NOTIFICATION, /**< Notification mode */ - TTSD_MODE_SCREEN_READER /**< Screen reader mode */ + TTSD_MODE_SCREEN_READER, /**< Screen reader mode */ + TTSD_MODE_INTERRUPT /**< Interrupt mode */ } ttsd_mode_e; typedef enum { @@ -76,11 +76,37 @@ typedef struct { int type; } voice_s; +typedef struct { + int version; + + ttse_get_info_cb get_info; + + ttse_initialize_cb initialize; + ttse_deinitialize_cb deinitialize; + + ttse_foreach_supported_voices_cb foreach_voices; + ttse_is_valid_voice_cb is_valid_voice; + ttse_set_pitch_cb set_pitch; + + ttse_load_voice_cb load_voice; + ttse_unload_voice_cb unload_voice; + + ttse_start_synthesis_cb start_synth; + ttse_cancel_synthesis_cb cancel_synth; + + ttse_check_app_agreed_cb check_app_agreed; + ttse_need_app_credential_cb need_app_credential; + ttse_private_data_set_cb private_data_set; + ttse_private_data_requested_cb private_data_requested; +} tts_engine_callback_s; + + /* get daemon mode : default, notification or screen reader */ ttsd_mode_e ttsd_get_mode(); /* Get log tag : default, notification, screen reader */ -const char* get_tag(); +//const char* get_tag(); +const char* tts_tag(); #ifdef __cplusplus }