internal enum SttError
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from the STT service */
- RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /**< Device or resource busy */
- OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network is down */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< STT NOT supported */
- InvalidState = ErrorStt | 0x01, /**< Invalid state */
- InvalidLanguage = ErrorStt | 0x02, /**< Invalid language */
- EngineNotFound = ErrorStt | 0x03, /**< No available engine */
- OperationFailed = ErrorStt | 0x04, /**< Operation failed */
- NotSupportedFeature = ErrorStt | 0x05, /**< Not supported feature of current engine */
- RecordingTimedOut = ErrorStt | 0x06, /**< Recording timed out */
- NoSpeech = ErrorStt | 0x07, /**< No speech while recording*/
- InProgressToReady = ErrorStt | 0x08, /**< Progress to ready is not finished*/
- InProgressToRecording = ErrorStt | 0x09, /**< Progress to recording is not finished*/
- InProgressToProcessing = ErrorStt | 0x10, /**< Progress to processing is not finished*/
- ServiceReset = ErrorStt | 0x11 /**< Service reset*/
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from the STT service */
+ RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /* Device or resource busy */
+ OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network is down */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* STT NOT supported */
+ InvalidState = ErrorStt | 0x01, /* Invalid state */
+ InvalidLanguage = ErrorStt | 0x02, /* Invalid language */
+ EngineNotFound = ErrorStt | 0x03, /* No available engine */
+ OperationFailed = ErrorStt | 0x04, /* Operation failed */
+ NotSupportedFeature = ErrorStt | 0x05, /* Not supported feature of current engine */
+ RecordingTimedOut = ErrorStt | 0x06, /* Recording timed out */
+ NoSpeech = ErrorStt | 0x07, /* No speech while recording */
+ InProgressToReady = ErrorStt | 0x08, /* Progress to ready is not finished */
+ InProgressToRecording = ErrorStt | 0x09, /* Progress to recording is not finished */
+ InProgressToProcessing = ErrorStt | 0x10, /* Progress to processing is not finished */
+ ServiceReset = ErrorStt | 0x11 /* Service reset */
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
}
/// <summary>
- /// A method to release resources.
+ /// Method to release resources.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Dispose()
{
Dispose(true);
}
+ /// <summary>
+ /// Method to release resources.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// <param name="disposing">
+ /// The boolean value for destoying stt handle.
+ /// </param>
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
public enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network down(Out of network) */
- InvalidState = ErrorStt | 0x01, /**< Invalid state */
- InvalidLanguage = ErrorStt | 0x02, /**< Invalid language */
- OperationFailed = ErrorStt | 0x04, /**< Operation failed */
- NotSupportedFeature = ErrorStt | 0x05, /**< Not supported feature of current engine */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Device or resource busy */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- RecordingTimedOut = ErrorStt | 0x06, /**< Recording timed out */
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network down(Out of network) */
+ InvalidState = ErrorStt | 0x01, /* Invalid state */
+ InvalidLanguage = ErrorStt | 0x02, /* Invalid language */
+ OperationFailed = ErrorStt | 0x04, /* Operation failed */
+ NotSupportedFeature = ErrorStt | 0x05, /* Not supported feature of current engine */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* Device or resource busy */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ RecordingTimedOut = ErrorStt | 0x06, /* Recording timed out */
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal enum TtsError
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network is down */
- TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from the STT service */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< STT NOT supported */
- InvalidState = ErrorTts | 0x01, /**< Invalid state */
- InvalidVoice = ErrorTts | 0x02, /**< Invalid language */
- EngineNotFound = ErrorTts | 0x03, /**< No available engine */
- OperationFailed = ErrorTts | 0x04, /**< Operation failed */
- AudioPolicyBlocked = ErrorTts | 0x05, /**< Audio policy blocked */
- NotSupportedFeature = ErrorTts | 0x06, /**< Not supported feature of current engine*/
- ServiceReset = ErrorTts | 0x07 /**< Service reset*/
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network is down */
+ TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from the STT service */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* STT NOT supported */
+ InvalidState = ErrorTts | 0x01, /* Invalid state */
+ InvalidVoice = ErrorTts | 0x02, /* Invalid language */
+ EngineNotFound = ErrorTts | 0x03, /* No available engine */
+ OperationFailed = ErrorTts | 0x04, /* Operation failed */
+ AudioPolicyBlocked = ErrorTts | 0x05, /* Audio policy blocked */
+ NotSupportedFeature = ErrorTts | 0x06, /* Not supported feature of current engine*/
+ ServiceReset = ErrorTts | 0x07 /* Service reset*/
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal set;
}
+ /// <summary>
+ /// A voice type (e.g. #TTS_VOICE_TYPE_MALE, #TTS_VOICE_TYPE_FEMALE).
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Voice VoiceType
{
get;
Dispose(true);
}
+ /// <summary>
+ /// Method to release resources.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// <param name="disposing">
+ /// The boolean value for destoying tts handle.
+ /// </param>
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
public enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network down(Out of network) */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- InvalidState = ErrorTts | 0x01, /**< Invalid state */
- InvalidVoice = ErrorTts | 0x02, /**< Invalid voice */
- OperationFailed = ErrorTts | 0x04, /**< Operation failed */
- NotSupportedFeature = ErrorTts | 0x06, /**< Not supported feature of current engine */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Device or resource busy */
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network down(Out of network) */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ InvalidState = ErrorTts | 0x01, /* Invalid state */
+ InvalidVoice = ErrorTts | 0x02, /* Invalid voice */
+ OperationFailed = ErrorTts | 0x04, /* Operation failed */
+ NotSupportedFeature = ErrorTts | 0x06, /* Not supported feature of current engine */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* Device or resource busy */
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from service */
- RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /**< Busy recorder */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< VC NOT supported */
- InvalidState = ErrorVoiceControl | 0x011, /**< Invalid state */
- InvalidLanguage = ErrorVoiceControl | 0x012, /**< Invalid language */
- EngineNotFound = ErrorVoiceControl | 0x013, /**< No available engine */
- OperationFailed = ErrorVoiceControl | 0x014, /**< Operation failed */
- OperationRejected = ErrorVoiceControl | 0x015, /**< Operation rejected */
- IterationEnd = ErrorVoiceControl | 0x016, /**< List reached end */
- Empty = ErrorVoiceControl | 0x017, /**< List empty */
- ServiceReset = ErrorVoiceControl | 0x018, /**< Service daemon reset (Since 3.0) */
- InProgressToReady = ErrorVoiceControl | 0x019, /**< In progress to ready (Since 3.0) */
- InProgressToRecording = ErrorVoiceControl | 0x020, /**< In progress to recording (Since 3.0) */
- InProgressToProcessing = ErrorVoiceControl | 0x021 /**< In progress to processing (Since 3.0) */
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from service */
+ RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /* Busy recorder */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* VC NOT supported */
+ InvalidState = ErrorVoiceControl | 0x011, /* Invalid state */
+ InvalidLanguage = ErrorVoiceControl | 0x012, /* Invalid language */
+ EngineNotFound = ErrorVoiceControl | 0x013, /* No available engine */
+ OperationFailed = ErrorVoiceControl | 0x014, /* Operation failed */
+ OperationRejected = ErrorVoiceControl | 0x015, /* Operation rejected */
+ IterationEnd = ErrorVoiceControl | 0x016, /* List reached end */
+ Empty = ErrorVoiceControl | 0x017, /* List empty */
+ ServiceReset = ErrorVoiceControl | 0x018, /* Service daemon reset */
+ InProgressToReady = ErrorVoiceControl | 0x019, /* In progress to ready */
+ InProgressToRecording = ErrorVoiceControl | 0x020, /* In progress to recording */
+ InProgressToProcessing = ErrorVoiceControl | 0x021 /* In progress to processing */
};
internal enum VoiceCommandType