2 * Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
27 * @addtogroup CAPI_UIX_STT_MODULE
37 * @brief Enumerations for error codes.
38 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
41 STT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
42 STT_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of Memory */
43 STT_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
44 STT_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,/**< Invalid parameter */
45 STT_ERROR_TIMED_OUT = TIZEN_ERROR_TIMED_OUT, /**< No answer from the daemon */
46 STT_ERROR_RECORDER_BUSY = TIZEN_ERROR_RESOURCE_BUSY, /**< Device or resource busy */
47 STT_ERROR_OUT_OF_NETWORK = TIZEN_ERROR_NETWORK_DOWN, /**< Network is down */
48 STT_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED,/**< Permission denied */
49 STT_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< STT NOT supported */
50 STT_ERROR_INVALID_STATE = TIZEN_ERROR_STT | 0x01, /**< Invalid state */
51 STT_ERROR_INVALID_LANGUAGE = TIZEN_ERROR_STT | 0x02, /**< Invalid language */
52 STT_ERROR_ENGINE_NOT_FOUND = TIZEN_ERROR_STT | 0x03, /**< No available engine */
53 STT_ERROR_OPERATION_FAILED = TIZEN_ERROR_STT | 0x04, /**< Operation failed */
54 STT_ERROR_NOT_SUPPORTED_FEATURE = TIZEN_ERROR_STT | 0x05, /**< Not supported feature of current engine */
55 STT_ERROR_NO_SPEECH = TIZEN_ERROR_STT | 0x06, /**< No speech while recording */
56 STT_ERROR_IN_PROGRESS_TO_READY = TIZEN_ERROR_STT | 0x07, /**< Progress to ready is not finished */
57 STT_ERROR_IN_PROGRESS_TO_RECORDING = TIZEN_ERROR_STT | 0x08, /**< Progress to recording is not finished */
58 STT_ERROR_IN_PROGRESS_TO_PROCESSING = TIZEN_ERROR_STT | 0x09, /**< Progress to processing is not finished */
59 STT_ERROR_RECORDING_TIMED_OUT = TIZEN_ERROR_STT | 0x10, /**< Recording timed out */
60 STT_ERROR_SERVICE_RESET = TIZEN_ERROR_STT | 0x11 /**< Service reset */
64 * @brief Definition for free form dictation and default type.
65 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
67 #define STT_RECOGNITION_TYPE_FREE "stt.recognition.type.FREE"
70 * @brief Definition for continuous free dictation.
71 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
73 #define STT_RECOGNITION_TYPE_FREE_PARTIAL "stt.recognition.type.FREE.PARTIAL"
76 * @brief Definition for search.
77 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
79 #define STT_RECOGNITION_TYPE_SEARCH "stt.recognition.type.SEARCH"
82 * @brief Definition for web search.
83 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
85 #define STT_RECOGNITION_TYPE_WEB_SEARCH "stt.recognition.type.WEB_SEARCH"
88 * @brief Definition for map.
89 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
91 #define STT_RECOGNITION_TYPE_MAP "stt.recognition.type.MAP"
94 * @brief Definition for none message.
95 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
97 #define STT_RESULT_MESSAGE_NONE "stt.result.message.none"
100 * @brief Definition for failed recognition because the speech started too soon.
101 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
103 #define STT_RESULT_MESSAGE_ERROR_TOO_SOON "stt.result.message.error.too.soon"
106 * @brief Definition for failed recognition because the speech is too short.
107 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
109 #define STT_RESULT_MESSAGE_ERROR_TOO_SHORT "stt.result.message.error.too.short"
112 * @brief Definition for failed recognition because the speech is too long.
113 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
115 #define STT_RESULT_MESSAGE_ERROR_TOO_LONG "stt.result.message.error.too.long"
118 * @brief Definition for failed recognition because the speech is too quiet to listen.
119 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
121 #define STT_RESULT_MESSAGE_ERROR_TOO_QUIET "stt.result.message.error.too.quiet"
124 * @brief Definition for failed recognition because the speech is too loud to listen.
125 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
127 #define STT_RESULT_MESSAGE_ERROR_TOO_LOUD "stt.result.message.error.too.loud"
130 * @brief Definition for failed recognition because the speech is too fast to listen.
131 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
133 #define STT_RESULT_MESSAGE_ERROR_TOO_FAST "stt.result.message.error.too.fast"
137 * @brief Enumeration for state.
138 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
141 STT_STATE_CREATED = 0, /**< 'CREATED' state */
142 STT_STATE_READY = 1, /**< 'READY' state */
143 STT_STATE_RECORDING = 2, /**< 'RECORDING' state */
144 STT_STATE_PROCESSING = 3 /**< 'PROCESSING' state*/
148 * @brief Enumeration for result event.
149 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
152 STT_RESULT_EVENT_FINAL_RESULT = 0, /**< Event when the recognition full or last result is ready */
153 STT_RESULT_EVENT_PARTIAL_RESULT, /**< Event when the recognition partial result is ready */
154 STT_RESULT_EVENT_ERROR /**< Event when the recognition has failed */
155 } stt_result_event_e;
158 * @brief Enumeration for result time callback event.
159 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
162 STT_RESULT_TIME_EVENT_BEGINNING = 0, /**< Event when the token is beginning type */
163 STT_RESULT_TIME_EVENT_MIDDLE = 1, /**< Event when the token is middle type */
164 STT_RESULT_TIME_EVENT_END = 2 /**< Event when the token is end type */
165 } stt_result_time_event_e;
168 * @brief Enumeration for silence detection type.
169 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
172 STT_OPTION_SILENCE_DETECTION_FALSE = 0, /**< Silence detection type - False */
173 STT_OPTION_SILENCE_DETECTION_TRUE = 1, /**< Silence detection type - True */
174 STT_OPTION_SILENCE_DETECTION_AUTO = 2 /**< Silence detection type - Auto */
175 } stt_option_silence_detection_e;
178 * @brief A structure of STT handler.
179 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
181 typedef struct stt_s *stt_h;
184 * @brief Called to get the engine information.
185 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
187 * @param[in] engine_id Engine id
188 * @param[in] engine_name Engine name
189 * @param[in] user_data User data passed from the stt_setting_foreach_supported_engines()
191 * @return @c true to continue with the next iteration of the loop, \n @c false to break out of the loop
192 * @pre stt_foreach_supported_engines() will invoke this callback.
194 * @see stt_foreach_supported_engines()
196 typedef bool(*stt_supported_engine_cb)(stt_h stt, const char* engine_id, const char* engine_name, void* user_data);
199 * @brief Called when STT gets the recognition result from the engine.
200 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
202 * @remarks After stt_stop() is called, silence is detected from recording, or partial result is occured,
203 * this function is called.
205 * @param[in] stt The STT handle
206 * @param[in] event The result event
207 * @param[in] data Result texts
208 * @param[in] data_count Result text count
209 * @param[in] msg Engine message (e.g. #STT_RESULT_MESSAGE_NONE, #STT_RESULT_MESSAGE_ERROR_TOO_SHORT)
210 * @param[in] user_data The user data passed from the callback registration function
212 * @pre stt_stop() will invoke this callback if you register it using stt_set_result_cb().
213 * @post If this function is called and event is #STT_RESULT_EVENT_FINAL_RESULT, the STT state will be #STT_STATE_READY.
216 * @see stt_set_recognition_result_cb()
217 * @see stt_unset_recognition_result_cb()
219 typedef void (*stt_recognition_result_cb)(stt_h stt, stt_result_event_e event, const char** data, int data_count,
220 const char* msg, void *user_data);
223 * @brief Called when STT get the result time stamp in free partial type.
224 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
226 * @param[in] stt The STT handle
227 * @param[in] index The result index
228 * @param[in] event The token event
229 * @param[in] text The result text
230 * @param[in] start_time The start time of result text
231 * @param[in] end_time The end time of result text
232 * @param[in] user_data The user data passed from the foreach function
234 * @return @c true to continue with the next iteration of the loop \n @c false to break out of the loop
236 * @pre stt_recognition_result_cb() should be called.
238 * @see stt_recognition_result_cb()
240 typedef bool (*stt_result_time_cb)(stt_h stt, int index, stt_result_time_event_e event, const char* text,
241 long start_time, long end_time, void* user_data);
244 * @brief Called when the state of STT is changed.
245 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
247 * @param[in] stt The STT handle
248 * @param[in] previous A previous state
249 * @param[in] current A current state
250 * @param[in] user_data The user data passed from the callback registration function
252 * @pre An application registers this callback using stt_set_state_changed_cb() to detect changing state.
254 * @see stt_set_state_changed_cb()
255 * @see stt_unset_state_changed_cb()
257 typedef void (*stt_state_changed_cb)(stt_h stt, stt_state_e previous, stt_state_e current, void* user_data);
260 * @brief Called when an error occurs.
261 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
263 * @param[in] stt The STT handle
264 * @param[in] reason The error type (e.g. #STT_ERROR_OUT_OF_NETWORK, #STT_ERROR_IO_ERROR)
265 * @param[in] user_data The user data passed from the callback registration function
267 * @pre An application registers this callback using stt_set_error_cb() to detect error.
269 * @see stt_set_error_cb()
270 * @see stt_unset_error_cb()
272 typedef void (*stt_error_cb)(stt_h stt, stt_error_e reason, void *user_data);
275 * @brief Called to retrieve the supported languages.
276 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
277 * @remarks The language is specified as an ISO 3166 alpha-2 two letter country-code followed by ISO 639-1 for the two-letter language code. For example, "ko_KR" for Korean, "en_US" for American English.
279 * @param[in] stt The STT handle
280 * @param[in] language The language
281 * @param[in] user_data The user data passed from the foreach function
283 * @return @c true to continue with the next iteration of the loop, \n @c false to break out of the loop
284 * @pre stt_foreach_supported_languages() will invoke this callback.
286 * @see stt_foreach_supported_languages()
288 typedef bool (*stt_supported_language_cb)(stt_h stt, const char* language, void* user_data);
291 * @brief Called when the default language is changed.
292 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
294 * @param[in] stt The STT handle
295 * @param[in] previous_language A previous language
296 * @param[in] current_language A current language
297 * @param[in] user_data The user data passed from the callback registration function
299 * @see stt_set_default_language_changed_cb()
301 typedef void (*stt_default_language_changed_cb)(stt_h stt, const char* previous_language,
302 const char* current_language, void* user_data);
305 * @brief Called when the engine is changed.
306 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
308 * @param[in] stt The STT handle
309 * @param[in] engine_id Engine id
310 * @param[in] language The default language
311 * @param[in] support_silence Whether the silence detection is supported or not
312 * @param[in] need_credential The necessity of credential
313 * @param[in] user_data The user data passed from the callback registration function
315 * @see stt_set_engine_changed_cb()
317 typedef bool (*stt_engine_changed_cb)(stt_h stt, const char* engine_id, const char* language,
318 bool support_silence, bool need_credential, void* user_data);
321 * @brief Creates a STT handle.
322 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
324 * @privilege %http://tizen.org/privilege/recorder
326 * @remarks If the function succeeds, @a stt handle must be released with stt_destroy().
328 * @param[out] stt The STT handle
330 * @return 0 on success, otherwise a negative error value
331 * @retval #STT_ERROR_NONE Successful
332 * @retval #STT_ERROR_OUT_OF_MEMORY Out of memory
333 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
334 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
335 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
336 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
338 * @post If this function is called, the STT state will be #STT_STATE_CREATED.
342 int stt_create(stt_h* stt);
345 * @brief Destroys a STT handle.
346 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
348 * @privilege %http://tizen.org/privilege/recorder
350 * @param[in] stt The STT handle
352 * @return 0 on success, otherwise a negative error value
353 * @retval #STT_ERROR_NONE Successful
354 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
355 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
356 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
357 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
361 int stt_destroy(stt_h stt);
364 * @brief Retrieves supported engine information using a callback function.
365 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
367 * @privilege %http://tizen.org/privilege/recorder
369 * @param[in] stt The STT handle
370 * @param[in] callback The callback function to invoke
371 * @param[in] user_data The user data to be passed to the callback function
373 * @return 0 on success, otherwise a negative error value
374 * @retval #STT_ERROR_NONE Success
375 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
376 * @retval #STT_ERROR_INVALID_STATE STT Not initialized
377 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
378 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
379 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
381 * @pre The state should be #STT_STATE_CREATED.
382 * @post This function invokes stt_supported_engine_cb() repeatedly for getting engine information.
384 * @see stt_supported_engine_cb()
386 int stt_foreach_supported_engines(stt_h stt, stt_supported_engine_cb callback, void* user_data);
389 * @brief Gets the current engine id.
390 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
392 * @privilege %http://tizen.org/privilege/recorder
394 * @remarks If the function is success, @a engine_id must be released using free().
396 * @param[in] stt The STT handle
397 * @param[out] engine_id Engine id
399 * @return 0 on success, otherwise a negative error value
400 * @retval #STT_ERROR_NONE Success
401 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
402 * @retval #STT_ERROR_INVALID_STATE STT Not initialized
403 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
404 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
405 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
407 * @pre The state should be #STT_STATE_CREATED.
409 * @see stt_set_engine()
411 int stt_get_engine(stt_h stt, char** engine_id);
414 * @brief Sets the engine id.
415 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
417 * @privilege %http://tizen.org/privilege/recorder
419 * @param[in] stt The STT handle
420 * @param[in] engine_id Engine id
422 * @return 0 on success, otherwise a negative error value
423 * @retval #STT_ERROR_NONE Success
424 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
425 * @retval #STT_ERROR_INVALID_STATE STT Not initialized
426 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
427 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
428 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
430 * @pre The state should be #STT_STATE_CREATED.
432 * @see stt_get_engine()
434 int stt_set_engine(stt_h stt, const char* engine_id);
437 * @brief Sets the app credential.
438 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
440 * @privilege %http://tizen.org/privilege/recorder
442 * @param[in] stt The STT handle
443 * @param[in] credential The app credential
445 * @return 0 on success, otherwise a negative error value
446 * @retval #STT_ERROR_NONE Success
447 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
448 * @retval #STT_ERROR_INVALID_STATE Invalid state
449 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
450 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
452 * @pre The state should be #STT_STATE_CREATED or #STT_STATE_READY.
457 int stt_set_credential(stt_h stt, const char* credential);
460 * @brief Sets the private data to stt engine.
461 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
463 * @param[in] stt The STT handle
464 * @param[in] key The field name of private data
465 * @param[in] data The data for set
467 * @return 0 on success, otherwise a negative error value
468 * @retval #STT_ERROR_NONE Successful
469 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
470 * @retval #STT_ERROR_INVALID_STATE Invalid state
471 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
472 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
473 * @retval #STT_ERROR_TIMED_OUT No answer from the daemon
475 * @pre The state should be #STT_STATE_READY.
477 * @see stt_get_private_data()
479 int stt_set_private_data(stt_h stt, const char* key, const char* data);
482 * @brief Gets the private data from stt engine.
483 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
485 * @param[in] stt The STT handle
486 * @param[in] key The field name of private data
487 * @param[out] data The data field of private data
489 * @remarks The @a data must be released using free() when it is no longer required.
491 * @return 0 on success, otherwise a negative error value
492 * @retval #STT_ERROR_NONE Successful
493 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
494 * @retval #STT_ERROR_INVALID_STATE Invalid state
495 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
496 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
497 * @retval #STT_ERROR_TIMED_OUT No answer from the daemon
499 * @pre The state should be #STT_STATE_READY.
501 * @see stt_set_private_data()
503 int stt_get_private_data(stt_h stt, const char* key, char** data);
506 * @brief Connects the daemon asynchronously.
507 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
509 * @privilege %http://tizen.org/privilege/recorder
511 * @param[in] stt The STT handle
513 * @return 0 on success, otherwise a negative error value
514 * @retval #STT_ERROR_NONE Successful
515 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
516 * @retval #STT_ERROR_INVALID_STATE Invalid state
517 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
518 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
520 * @pre The state should be #STT_STATE_CREATED.
521 * @post If this function is successful, the STT state will be #STT_STATE_READY. \n
522 * If this function is failed, the error callback is called. (e.g. #STT_ERROR_ENGINE_NOT_FOUND)
524 * @see stt_unprepare()
526 int stt_prepare(stt_h stt);
529 * @brief Disconnects the daemon.
530 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
532 * @privilege %http://tizen.org/privilege/recorder
534 * @param[in] stt The STT handle
536 * @return 0 on success, otherwise a negative error value
537 * @retval #STT_ERROR_NONE Successful
538 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
539 * @retval #STT_ERROR_INVALID_STATE Invalid state
540 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
541 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
543 * @pre The state should be #STT_STATE_READY.
544 * @post If this function is called, the STT state will be #STT_STATE_CREATED.
548 int stt_unprepare(stt_h stt);
551 * @brief Retrieves all supported languages of current engine using callback function.
552 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
554 * @privilege %http://tizen.org/privilege/recorder
556 * @param[in] stt The STT handle
557 * @param[in] callback The callback function to invoke
558 * @param[in] user_data The user data to be passed to the callback function
560 * @return 0 on success, otherwise a negative error value
561 * @retval #STT_ERROR_NONE Successful
562 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
563 * @retval #STT_ERROR_OUT_OF_MEMORY Out of memory
564 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
565 * @retval #STT_ERROR_ENGINE_NOT_FOUND No available engine
566 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
567 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
569 * @post This function invokes stt_supported_language_cb() repeatedly for getting languages.
571 * @see stt_supported_language_cb()
572 * @see stt_get_default_language()
574 int stt_foreach_supported_languages(stt_h stt, stt_supported_language_cb callback, void* user_data);
577 * @brief Gets the default language set by the user.
578 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
580 * @privilege %http://tizen.org/privilege/recorder
581 * @remarks The language is specified as an ISO 3166 alpha-2 two letter country-code followed by ISO 639-1 for the two-letter language code. \n
582 * For example, "ko_KR" for Korean, "en_US" for American English. \n
583 * If the function succeeds, @a language must be released using free() when it is no longer required.
585 * @param[in] stt The STT handle
586 * @param[out] language The language
588 * @return 0 on success, otherwise a negative error value
589 * @retval #STT_ERROR_NONE Successful
590 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
591 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
592 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
593 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
595 * @see stt_foreach_supported_languages()
597 int stt_get_default_language(stt_h stt, char** language);
600 * @brief Gets the current STT state.
601 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
603 * @privilege %http://tizen.org/privilege/recorder
605 * @param[in] stt The STT handle
606 * @param[out] state The current STT state
608 * @return 0 on success, otherwise a negative error value
609 * @retval #STT_ERROR_NONE Successful
610 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
611 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
612 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
617 * @see stt_state_changed_cb()
619 int stt_get_state(stt_h stt, stt_state_e* state);
622 * @brief Gets the current error message.
623 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
625 * @privilege %http://tizen.org/privilege/recorder
626 * @remarks This function should be called during an stt error callback. If not, the error as operation failure will be returned. \n
627 * If the function succeeds, @a err_msg must be released using free() when it is no longer required.
629 * @param[in] stt The STT handle
630 * @param[out] err_msg The current error message
632 * @return 0 on success, otherwise a negative error value
633 * @retval #STT_ERROR_NONE Successful
634 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
635 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
636 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
637 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
639 * @see stt_set_error_cb()
640 * @see stt_unset_error_cb()
642 int stt_get_error_message(stt_h stt, char** err_msg);
645 * @brief Checks whether the recognition type is supported.
646 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
648 * @privilege %http://tizen.org/privilege/recorder
650 * @param[in] stt The STT handle
651 * @param[in] type The type for recognition (e.g. #STT_RECOGNITION_TYPE_FREE, #STT_RECOGNITION_TYPE_FREE_PARTIAL)
652 * @param[out] support The result status @c true = supported, @c false = not supported
654 * @return 0 on success, otherwise a negative error value
655 * @retval #STT_ERROR_NONE Successful
656 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
657 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
658 * @retval #STT_ERROR_INVALID_STATE Invalid state
659 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
660 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
662 * @pre The state should be #STT_STATE_READY.
664 int stt_is_recognition_type_supported(stt_h stt, const char* type, bool* support);
667 * @brief Sets the silence detection.
668 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
670 * @privilege %http://tizen.org/privilege/recorder
672 * @param[in] stt The STT handle
673 * @param[in] type The option type
675 * @return 0 on success, otherwise a negative error value
676 * @retval #STT_ERROR_NONE Successful
677 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
678 * @retval #STT_ERROR_INVALID_STATE Invalid state
679 * @retval #STT_ERROR_NOT_SUPPORTED_FEATURE Not supported feature of current engine
680 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
681 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
683 * @pre The state should be #STT_STATE_READY.
685 int stt_set_silence_detection(stt_h stt, stt_option_silence_detection_e type);
688 * @brief Sets the sound to start recording.
689 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
691 * @privilege %http://tizen.org/privilege/recorder
693 * @remarks Sound file type should be wav type.
695 * @param[in] stt The STT handle
696 * @param[in] filename The sound file path
698 * @return 0 on success, otherwise a negative error value
699 * @retval #STT_ERROR_NONE Successful
700 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
701 * @retval #STT_ERROR_INVALID_STATE Invalid state
702 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
703 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
704 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
706 * @pre The state should be #STT_STATE_READY.
708 int stt_set_start_sound(stt_h stt, const char* filename);
711 * @brief Unsets the sound to start recording.
712 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
714 * @privilege %http://tizen.org/privilege/recorder
716 * @param[in] stt The STT handle
718 * @return 0 on success, otherwise a negative error value
719 * @retval #STT_ERROR_NONE Successful
720 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
721 * @retval #STT_ERROR_INVALID_STATE Invalid state
722 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
723 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
724 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
726 * @pre The state should be #STT_STATE_READY.
728 int stt_unset_start_sound(stt_h stt);
731 * @brief Sets the sound to stop recording.
732 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
734 * @privilege %http://tizen.org/privilege/recorder
736 * @remarks Sound file type should be wav type.
738 * @param[in] stt The STT handle
739 * @param[in] filename The sound file path
741 * @return 0 on success, otherwise a negative error value
742 * @retval #STT_ERROR_NONE Successful
743 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
744 * @retval #STT_ERROR_INVALID_STATE Invalid state
745 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
746 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
747 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
749 * @pre The state should be #STT_STATE_READY.
751 int stt_set_stop_sound(stt_h stt, const char* filename);
754 * @brief Unsets the sound to stop recording.
755 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
757 * @privilege %http://tizen.org/privilege/recorder
759 * @param[in] stt The STT handle
761 * @return 0 on success, otherwise a negative error value
762 * @retval #STT_ERROR_NONE Successful
763 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
764 * @retval #STT_ERROR_INVALID_STATE Invalid state
765 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
766 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
767 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
769 * @pre The state should be #STT_STATE_READY.
771 int stt_unset_stop_sound(stt_h stt);
774 * @brief Starts recording and recognition asynchronously.
775 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
777 * @privilege %http://tizen.org/privilege/recorder
779 * @remarks This function starts recording in the daemon and sending recording data to engine. \n
780 * This work continues until stt_stop(), stt_cancel() or silence detected by engine.
782 * @param[in] stt The STT handle
783 * @param[in] language The language selected from stt_foreach_supported_languages()
784 * @param[in] type The type for recognition (e.g. #STT_RECOGNITION_TYPE_FREE, #STT_RECOGNITION_TYPE_FREE_PARTIAL)
786 * @return 0 on success, otherwise a negative error value
787 * @retval #STT_ERROR_NONE Successful
788 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
789 * @retval #STT_ERROR_INVALID_STATE Invalid state
790 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
791 * @retval #STT_ERROR_RECORDER_BUSY Recorder busy
792 * @retval #STT_ERROR_INVALID_LANGUAGE Invalid language
793 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
794 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
795 * @retval #STT_ERROR_IN_PROGRESS_TO_RECORDING Progress to recording is not finished
797 * @pre The state should be #STT_STATE_READY.
798 * @post It will invoke stt_state_changed_cb(), if you register a callback with stt_state_changed_cb(). \n
799 * If this function succeeds, the STT state will be #STT_STATE_RECORDING.
800 * If you call this function again before state changes, you will receive STT_ERROR_IN_PROGRESS_TO_RECORDING.
804 * @see stt_state_changed_cb()
806 int stt_start(stt_h stt, const char* language, const char* type);
809 * @brief Finishes the recording and starts recognition processing in engine asynchronously.
810 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
812 * @privilege %http://tizen.org/privilege/recorder
814 * @param[in] stt The STT handle
816 * @return 0 on success, otherwise a negative error value
817 * @retval #STT_ERROR_NONE Successful
818 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
819 * @retval #STT_ERROR_INVALID_STATE Invalid state
820 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
821 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
822 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
823 * @retval #STT_ERROR_IN_PROGRESS_TO_READY Progress to ready is not finished
824 * @retval #STT_ERROR_IN_PROGRESS_TO_RECORDING Progress to recording is not finished
825 * @retval #STT_ERROR_IN_PROGRESS_TO_PROCESSING Progress to processing is not finished
827 * @pre The state should be #STT_STATE_RECORDING.
828 * @post It will invoke stt_state_changed_cb(), if you register a callback with stt_state_changed_cb(). \n
829 * If this function succeeds, the STT state will be #STT_STATE_PROCESSING. \n
830 * If you call this function again before state changes, you will receive STT_ERROR_IN_PROGRESS_TO_PROCESSING.
831 * After processing of engine, stt_result_cb() is called.
835 * @see stt_state_changed_cb()
837 int stt_stop(stt_h stt);
840 * @brief Cancels processing recognition and recording asynchronously.
841 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
843 * @privilege %http://tizen.org/privilege/recorder
845 * @remarks This function cancels recording and engine cancels recognition processing. \n
846 * After successful cancel, stt_state_changed_cb() is called otherwise if error is occurred, stt_error_cb() is called.
848 * @param[in] stt The STT handle
850 * @return 0 on success, otherwise a negative error value
851 * @retval #STT_ERROR_NONE Successful
852 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
853 * @retval #STT_ERROR_INVALID_STATE Invalid state
854 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
855 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
856 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
857 * @retval #STT_ERROR_IN_PROGRESS_TO_READY Progress to ready is not finished
858 * @retval #STT_ERROR_IN_PROGRESS_TO_RECORDING Progress to recording is not finished
859 * @retval #STT_ERROR_IN_PROGRESS_TO_PROCESSING Progress to processing is not finished
861 * @pre The state should be #STT_STATE_RECORDING or #STT_STATE_PROCESSING.
862 * @post It will invoke stt_state_changed_cb(), if you register a callback with stt_state_changed_cb(). \n
863 * If this function succeeds, the STT state will be #STT_STATE_READY.
864 * If you call this function again before state changes, you will receive STT_ERROR_IN_PROGRESS_TO_READY.
868 * @see stt_state_changed_cb()
870 int stt_cancel(stt_h stt);
873 * @brief Gets the microphone volume during recording.
874 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
876 * @privilege %http://tizen.org/privilege/recorder
878 * @param[in] stt The STT handle
879 * @param[out] volume Recording volume
881 * @return 0 on success, otherwise a negative error value
882 * @retval #STT_ERROR_NONE Successful
883 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
884 * @retval #STT_ERROR_INVALID_STATE Invalid state
885 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
886 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
887 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
889 * @pre The state should be #STT_STATE_RECORDING.
893 int stt_get_recording_volume(stt_h stt, float* volume);
896 * @brief Retrieves the time stamp of the current recognition result using the callback function.
897 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
899 * @privilege %http://tizen.org/privilege/recorder
901 * @remarks This function should be called in stt_recognition_result_cb().
902 * After stt_recognition_result_cb(), result data is NOT valid.
904 * @param[in] stt The STT handle
905 * @param[in] callback The callback function to invoke
906 * @param[in] user_data The user data to be passed to the callback function
908 * @return 0 on success, otherwise a negative error value
909 * @retval #STT_ERROR_NONE Successful
910 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
911 * @retval #STT_ERROR_OPERATION_FAILED Operation failure
912 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
913 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
915 * @pre This function should be called in stt_recognition_result_cb().
916 * @post This function invokes stt_result_time_cb() repeatedly for getting time information.
918 * @see stt_result_time_cb()
919 * @see stt_recognition_result_cb()
921 int stt_foreach_detailed_result(stt_h stt, stt_result_time_cb callback, void* user_data);
924 * @brief Registers a callback function to get the recognition result.
925 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
927 * @privilege %http://tizen.org/privilege/recorder
929 * @param[in] stt The STT handle
930 * @param[in] callback The callback function to register
931 * @param[in] user_data The user data to be passed to the callback function
933 * @return 0 on success, otherwise a negative error value
934 * @retval #STT_ERROR_NONE Successful
935 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
936 * @retval #STT_ERROR_INVALID_STATE Invalid state
937 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
938 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
940 * @pre The state should be #STT_STATE_CREATED.
942 * @see stt_recognition_result_cb()
943 * @see stt_unset_recognition_result_cb()
945 int stt_set_recognition_result_cb(stt_h stt, stt_recognition_result_cb callback, void* user_data);
948 * @brief Unregisters the callback function.
949 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
951 * @privilege %http://tizen.org/privilege/recorder
953 * @param[in] stt The STT handle
955 * @return 0 on success, otherwise a negative error value
956 * @retval #STT_ERROR_NONE Successful
957 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
958 * @retval #STT_ERROR_INVALID_STATE Invalid state
959 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
960 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
962 * @pre The state should be #STT_STATE_CREATED.
964 * @see stt_set_recognition_result_cb()
966 int stt_unset_recognition_result_cb(stt_h stt);
969 * @brief Registers a callback function to be called when STT state changes.
970 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
972 * @privilege %http://tizen.org/privilege/recorder
974 * @param[in] stt The STT handle
975 * @param[in] callback The callback function to register
976 * @param[in] user_data The user data to be passed to the callback function
978 * @return 0 on success, otherwise a negative error value
979 * @retval #STT_ERROR_NONE Successful
980 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
981 * @retval #STT_ERROR_INVALID_STATE Invalid state
982 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
983 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
985 * @pre The state should be #STT_STATE_CREATED.
987 * @see stt_state_changed_cb()
988 * @see stt_unset_state_changed_cb()
990 int stt_set_state_changed_cb(stt_h stt, stt_state_changed_cb callback, void* user_data);
993 * @brief Unregisters the callback function.
994 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
996 * @privilege %http://tizen.org/privilege/recorder
998 * @param[in] stt The STT handle
1000 * @return 0 on success, otherwise a negative error value
1001 * @retval #STT_ERROR_NONE Successful
1002 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1003 * @retval #STT_ERROR_INVALID_STATE Invalid state
1004 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1005 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1007 * @pre The state should be #STT_STATE_CREATED.
1009 * @see stt_set_state_changed_cb()
1011 int stt_unset_state_changed_cb(stt_h stt);
1014 * @brief Registers a callback function to be called when an error occurred.
1015 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1017 * @privilege %http://tizen.org/privilege/recorder
1019 * @param[in] stt The STT handle
1020 * @param[in] callback The callback function to register
1021 * @param[in] user_data The user data to be passed to the callback function
1023 * @return 0 on success, otherwise a negative error value
1024 * @retval #STT_ERROR_NONE Successful
1025 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1026 * @retval #STT_ERROR_INVALID_STATE Invalid state
1027 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1028 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1030 * @pre The state should be #STT_STATE_CREATED.
1032 * @see stt_error_cb()
1033 * @see stt_unset_error_cb()
1035 int stt_set_error_cb(stt_h stt, stt_error_cb callback, void* user_data);
1038 * @brief Unregisters the callback function.
1039 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1041 * @privilege %http://tizen.org/privilege/recorder
1043 * @param[in] stt The STT handle
1045 * @return 0 on success, otherwise a negative error value
1046 * @retval #STT_ERROR_NONE Successful
1047 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1048 * @retval #STT_ERROR_INVALID_STATE Invalid state
1049 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1050 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1052 * @pre The state should be #STT_STATE_CREATED.
1054 * @see stt_set_error_cb()
1056 int stt_unset_error_cb(stt_h stt);
1059 * @brief Registers a callback function to detect the default language change.
1060 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1062 * @privilege %http://tizen.org/privilege/recorder
1064 * @param[in] stt The STT handle
1065 * @param[in] callback The callback function to register
1066 * @param[in] user_data The user data to be passed to the callback function
1068 * @return 0 on success, otherwise a negative error value
1069 * @retval #STT_ERROR_NONE Successful
1070 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1071 * @retval #STT_ERROR_INVALID_STATE Invalid state
1072 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1073 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1075 * @pre The state should be #STT_STATE_CREATED.
1077 * @see stt_default_language_changed_cb()
1078 * @see stt_unset_default_language_changed_cb()
1080 int stt_set_default_language_changed_cb(stt_h stt, stt_default_language_changed_cb callback, void* user_data);
1083 * @brief Unregisters the callback function.
1084 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1086 * @privilege %http://tizen.org/privilege/recorder
1088 * @param[in] stt The STT handle
1090 * @return 0 on success, otherwise a negative error value
1091 * @retval #STT_ERROR_NONE Successful
1092 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1093 * @retval #STT_ERROR_INVALID_STATE Invalid state
1094 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1095 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1097 * @pre The state should be #STT_STATE_CREATED.
1099 * @see stt_set_default_language_changed_cb()
1101 int stt_unset_default_language_changed_cb(stt_h stt);
1104 * @brief Registers a callback function to detect the engine change.
1105 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
1107 * @privilege %http://tizen.org/privilege/recorder
1109 * @param[in] stt The STT handle
1110 * @param]in] callback The callback function to register
1111 * @param[in] user_data The user data to be passed to the callback function
1113 * @return 0 on success, otherwise a negative error value
1114 * @retval #STT_ERROR_NONE Successful
1115 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1116 * @retval #STT_ERROR_INVALID_STATE Invalid state
1117 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1118 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1120 * @pre The state should be #STT_STATE_CREATED.
1122 * @see stt_engine_changed_cb()
1123 * @see stt_unset_engine_changed_cb()
1125 int stt_set_engine_changed_cb(stt_h stt, stt_engine_changed_cb callback, void* user_data);
1128 * @brief Unregisters the callback function.
1129 * @since_tizen @if MOBILE 3.0 @elseif WEARABLE 2.3.2 @endif
1131 * @privilege %http://tizen.org/privilege/recorder
1133 * @param[in] stt The STT handle
1135 * @return 0 on success, otherwise a negative error value
1136 * @retval #STT_ERROR_NONE Successful
1137 * @retval #STT_ERROR_INVALID_PARAMETER Invalid parameter
1138 * @retval #STT_ERROR_INVALID_STATE Invalid state
1139 * @retval #STT_ERROR_NOT_SUPPORTED STT NOT supported
1140 * @retval #STT_ERROR_PERMISSION_DENIED Permission denied
1142 * @pre The state should be #STT_STATE_CREATED.
1144 * @see stt_set_engine_changed_cb()
1146 int stt_unset_engine_changed_cb(stt_h stt);
1157 #endif /* __STT_H__ */