2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUixSpeechSpeechToTextTypes.h
20 * @brief This is the header file for the common data types used by the %SpeechToText class.
22 * This header file contains the declarations of the common data types and constants used by the SpeechToText class.
25 #ifndef _FUIX_SPEECH_SPEECH_TO_TEXT_TYPES_H_
26 #define _FUIX_SPEECH_SPEECH_TO_TEXT_TYPES_H_
28 namespace Tizen { namespace Uix { namespace Speech
32 * @enum SpeechToTextStatus
34 * Defines the status of the Speech-To-Text service.
38 * @see ISpeechToTextEventListener::OnSpeechToTextStatusChanged()
40 enum SpeechToTextStatus
42 SPEECH_TO_TEXT_STATUS_NONE, /**< No status */
43 SPEECH_TO_TEXT_STATUS_READY, /**< The ready status */
44 SPEECH_TO_TEXT_STATUS_RECORDING, /**< The recording status */
45 SPEECH_TO_TEXT_STATUS_PROCESSING /**< The recognition processing status */
49 * @enum SpeechToTextGrammar
51 * Defines the grammar of the Speech-To-Text service.
55 * @see SpeechToText::SetGrammar()
57 enum SpeechToTextGrammar
59 SPEECH_TO_TEXT_GRAMMAR_FREE, /**< The key is used for general purpose dictation */
60 SPEECH_TO_TEXT_GRAMMAR_WEB_SEARCH /**< The key is used for recognizing short phrases,
61 * such as the ones used for a web search */
65 * @enum SpeechToTextError
67 * Defines the errors that occur in the Speech-To-Text service. @n
68 * When an error occurs, the user does not receive any Speech-To-Text result.
72 * @see ISpeechToTextEventListener::OnSpeechToTextErrorOccurred()
74 enum SpeechToTextError
76 SPEECH_TO_TEXT_ERROR_OUT_OF_MEMORY, /**< The out-of-memory error */
77 SPEECH_TO_TEXT_ERROR_IO_ERROR, /**< The I/O error */
78 SPEECH_TO_TEXT_ERROR_NETWORK_ERROR, /**< The network connection error */
79 SPEECH_TO_TEXT_ERROR_TIME_OUT, /**< The time-out error */
80 SPEECH_TO_TEXT_ERROR_SYSTEM_ERROR, /**< The system error */
81 SPEECH_TO_TEXT_ERROR_UNSUPPORTED_SERVICE /**< The unsupported service error */
84 } } } // Tizen::Uix::Speech