X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=server%2Fttsd_main.h;h=306e799bd98cffec6d00127e1ace250e17351d56;hb=8a567079ea0677de5c4da1666ec8b5ad86a3bce7;hp=d5c6291898b6e6f68f6d39f149439345e263fed3;hpb=321c0e26716c44630c993044c656f8e13958487a;p=platform%2Fcore%2Fuifw%2Ftts.git diff --git a/server/ttsd_main.h b/server/ttsd_main.h index d5c6291..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 { @@ -50,13 +49,15 @@ typedef enum { TTSD_ERROR_ENGINE_NOT_FOUND = TIZEN_ERROR_TTS | 0x03, /**< No available engine */ TTSD_ERROR_OPERATION_FAILED = TIZEN_ERROR_TTS | 0x04, /**< Operation failed */ TTSD_ERROR_AUDIO_POLICY_BLOCKED = TIZEN_ERROR_TTS | 0x05, /**< Audio policy blocked */ - TTSD_ERROR_NOT_SUPPORTED_FEATURE = TIZEN_ERROR_TTS | 0x06 /**< Not supported feature of current engine*/ + TTSD_ERROR_NOT_SUPPORTED_FEATURE = TIZEN_ERROR_TTS | 0x06, /**< Not supported feature of current engine*/ + TTSD_ERROR_SERVICE_RESET = TIZEN_ERROR_TTS | 0x07 /**< Service reset */ } ttsd_error_e; 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 { @@ -75,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 }