/**
* Initializes the Speech-To-Text service. @n
- * The %Initialize() method is asynchronous. @n
+ * This method is asynchronous. @n
* The ISpeechToTextEventListener::OnSpeechToTextInitialized() is invoked when the service has been initialized.
* @since 2.0
*
- * @feature %http://tizen.org/feature/speech.recognition
- *
* @return An error code
* @exception E_SUCCESS The method is successful.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
- * For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
- * @remarks
- * - Before calling this method, check whether the feature is supported by
- * Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
- * - This method must be called after Construct().
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @remarks This method must be called after Construct().
*/
result Initialize(void);
/**
* @enum SpeechToTextStatus
*
-* Defines the SpeechToText status.
+* Defines the %SpeechToText status.
*
* @since 2.0
*
/**
* @enum SpeechToTextGrammar
*
-* Defines the SpeechToText grammar.
+* Defines the %SpeechToText grammar.
*
* @since 2.0
*
/**
* @enum SpeechToTextError
*
-* Defines the errors in SpeechToText. @n
+* Defines the errors in %SpeechToText. @n
* When an error occurs, the user can not receive any %SpeechToText result.
*
* @since 2.0
/**
* Initializes the Text-To-Speech service. @n
- * The %Initialize() method is asynchronous. @n
+ * This method is asynchronous. @n
* The ITextToSpeechEventListener::OnTextToSpeechInitialized() is invoked when the service has been initialized.
*
* @since 2.0
- *
- * @feature %http://tizen.org/feature/speech.synthesis
- *
+ *
* @return An error code
* @exception E_SUCCESS The method is successful.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
- * For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
- * @remarks
- * - Before calling this method, check whether the feature is supported by
- * Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
- * - This method must be called after Construct().
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @remarks This method must be called after Construct().
*/
result Initialize(void);
#include <FBaseColIList.h>\r
#include <FBaseColArrayList.h>\r
#include <FBaseString.h>\r
-#include <FSystem.h>\r
#include <FBaseUtilStringTokenizer.h>\r
#include <FLclLocale.h>\r
#include <FUixSpeechSpeechToText.h>\r
using namespace Tizen::Base;\r
using namespace Tizen::Base::Collection;\r
using namespace Tizen::Locales;\r
-using namespace Tizen::System;\r
\r
namespace Tizen { namespace Uix { namespace Speech\r
{\r
result\r
_SpeechToTextImpl::Initialize(void)\r
{\r
- bool isSupported;\r
- SysAssertf(__isInitialized != true,\r
+ SysAssertf(__isInitialized != true,\r
"Already calling Initialize() twice or more on a same instance is not allowed for this class.");\r
\r
- Tizen::System::SystemInfo::GetValue("http://tizen.org/feature/speech.recognition", isSupported); \r
- SysTryReturnResult(NID_UIX_SPEECH, isSupported == true, E_UNSUPPORTED_OPERATION, "The STT is Not supported");\r
-\r
int sttError = stt_set_error_cb(__sttHandle, SttErrorReceiver, __pSpeechToTextListener);\r
SysTryLog(NID_UIX_SPEECH, sttError == STT_ERROR_NONE, "[%s] Failed to set the error callback.", GetEngineErrorMessage(sttError));\r
SysTryReturnResult(NID_UIX_SPEECH, sttError == STT_ERROR_NONE, E_OUT_OF_MEMORY, "The memory is insufficient.");\r
#include <FBaseColIList.h>
#include <FBaseColArrayList.h>
#include <FBaseString.h>
-#include <FSystem.h>
#include <FBaseUtilStringTokenizer.h>
#include <FLclLocale.h>
#include <FUixSpeechTextToSpeech.h>
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
using namespace Tizen::Locales;
-using namespace Tizen::System;
#ifdef __cplusplus
extern "C"
result
_TextToSpeechImpl::Initialize(void)
{
- bool isSupported;
SysAssertf(__isInitialized != true,
"Already calling Initialize() twice or more on a same instance is not allowed for this class.");
- Tizen::System::SystemInfo::GetValue("http://tizen.org/feature/speech.synthesis", isSupported);
- SysTryReturnResult(NID_UIX_SPEECH, isSupported == true, E_UNSUPPORTED_OPERATION, "The TTS is Not supported");
-
int ttsError = tts_set_error_cb(__ttsHandle, TtsErrorReceiver, (void*)(__pTextToSpeechListener));
SysTryLog(NID_UIX_SPEECH, ttsError == TTS_ERROR_NONE, "[%s] Failed to set the error callback.", GetEngineErrorMessage(ttsError));
SysTryReturnResult(NID_UIX_SPEECH, ttsError == TTS_ERROR_NONE, E_OUT_OF_MEMORY, "The memory is insufficient.");