Add a new TTS Interrupt mode
[platform/core/uifw/tts.git] / include / tts_internal.h
index 1c02cb5..303b6d3 100644 (file)
@@ -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.
@@ -71,7 +76,7 @@ int tts_set_server_tts(tts_h tts, const char* credential);
  * @retval #TTS_ERROR_OPERATION_FAILED Operation failure
  * @retval #TTS_ERROR_NOT_SUPPORTED TTS NOT supported
  * @retval #TTS_ERROR_PERMISSION_DENIED Permission denied
- * @pre The state should be #TTS_STATE_PLAYING.
+ * @pre The state should be #TTS_STATE_READY, #TTS_STATE_PLAYING, or #TTS_STATE_PAUSED.
  * @see tts_play_pcm()
  * @see tts_stop_pcm()
 */
@@ -90,7 +95,7 @@ int tts_add_pcm(tts_h tts, int event, const void* data, unsigned int data_size,
  * @retval #TTS_ERROR_OPERATION_FAILED Operation failure
  * @retval #TTS_ERROR_NOT_SUPPORTED TTS NOT supported
  * @retval #TTS_ERROR_PERMISSION_DENIED Permission denied
- * @pre The state should be #TTS_STATE_READY.
+ * @pre The state should be #TTS_STATE_READY or #TTS_STATE_PAUSED.
  * @see tts_add_pcm()
  * @see tts_stop_pcm()
 */
@@ -109,7 +114,7 @@ int tts_play_pcm(tts_h tts);
  * @retval #TTS_ERROR_OPERATION_FAILED Operation failure
  * @retval #TTS_ERROR_NOT_SUPPORTED TTS NOT supported
  * @retval #TTS_ERROR_PERMISSION_DENIED Permission denied
- * @pre The state should be #TTS_STATE_PLAYING.
+ * @pre The state should be #TTS_STATE_READY, #TTS_STATE_PLAYING, or #TTS_STATE_PAUSED.
  * @see tts_play_pcm()
  * @see tts_add_pcm()
 */