using static Tizen.Uix.SttEngine.Engine;
/// <summary>
-/// Partial Interop Class
+/// The Partial Interop class.
/// </summary>
internal static partial class Interop
{
/// <summary>
- /// SttEngine Interop Class
+ /// The SttEngine Interop class.
/// </summary>
internal static class SttEngine
{
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 delegate Error ForEachSupportedLangsCb(SupportedLanguages cb, IntPtr userData);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate Error IsValidLanguageCb(IntPtr language, IntPtr isValid);
+ internal delegate Error IsValidLanguageCb(string language, out byte isValid);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate bool SupportSilenceDetectionCb();
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate Error SupportRecognitionTypeCb(string type, out bool isSupported);
+ internal delegate Error SupportRecognitionTypeCb(string type, out byte isSupported);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate Error GetRecordingFormatCb(out AudioType types, out int rate, out int channels);
internal delegate Error SetSilenceDetectionCb(bool isSet);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate Error CheckAppAgreedCb(string appid, out bool isAgreed);
+ internal delegate Error CheckAppAgreedCb(string appid, out byte isAgreed);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate bool NeedAppCredentialCb();
internal delegate Error ForEachResultTimeCb(IntPtr timeInfo, ResultTime callback, IntPtr userData);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate Error StartCb(IntPtr language, IntPtr type, IntPtr appid, IntPtr credential, IntPtr userData);
+ internal delegate Error StartCb(string language, string type, string appid, string credential, IntPtr userData);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate Error SetRecordingDataCb(string data, uint length);
internal delegate Error CancelCb();
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate Error GetInfoCb(out IntPtr engineUuid, out IntPtr engineName, out IntPtr engineSetting, out IntPtr useNetwork);
+ internal delegate Error GetInfoCb(out string engineUuid, out string engineName, out string engineSetting, out byte useNetwork);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate Error PrivateDataSetCb(string key, string data);