X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftts_internal.h;h=9e9a9da55e6b38deb547ddfab9a9146bb007a777;hb=f09e5290b213b4bb7f6f2bdf49188008e363aec6;hp=29ea810e667701a07e2258c0b9c8e5f212823750;hpb=f20fd18b686880fc0c58ce83378b4dee4a60ccaf;p=platform%2Fcore%2Fuifw%2Ftts.git diff --git a/include/tts_internal.h b/include/tts_internal.h index 29ea810..9e9a9da 100644 --- a/include/tts_internal.h +++ b/include/tts_internal.h @@ -28,6 +28,11 @@ extern "C" #endif /** + * @brief Definition for TTS interrupt mode + */ +#define TTS_MODE_INTERRUPT 3 + +/** * @brief Sets server tts. * @details Using this API, the application can ask server tts with a credential. * The credential is a key to verify the authorization about using the engine based on server, not embeded engine. @@ -115,6 +120,25 @@ int tts_play_pcm(tts_h tts); */ int tts_stop_pcm(tts_h tts); + +/** + * @brief Connects the daemon asynchronously. + * @since_tizen 5.0 + * @param[in] tts The TTS handle + * @return @c 0 on success, + * otherwise a negative error value + * @retval #TTS_ERROR_NONE Successful + * @retval #TTS_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #TTS_ERROR_INVALID_STATE Invalid state + * @retval #TTS_ERROR_NOT_SUPPORTED TTS NOT supported + * @pre The state should be #TTS_STATE_CREATED. + * @post If this function is successful, the TTS state will be #TTS_STATE_READY. + * If this function is failed, the error callback is called. (e.g. #TTS_ERROR_ENGINE_NOT_FOUND) + * @see tts_unprepare() +*/ +int tts_prepare_sync(tts_h tts); + + #ifdef __cplusplus } #endif