OSSSpeechKitErrorType
public enum OSSSpeechKitErrorType : Int
All of the possible error types that can be thrown by OSSSpeechKit
-
No microphone access
Declaration
Swift
case noMicrophoneAccess = -1
-
An invalid utterance.
Declaration
Swift
case invalidUtterance = -2
-
Invalid text - usually an empty string.
Declaration
Swift
case invalidText = -3
-
The voice type is invalid.
Declaration
Swift
case invalidVoice = -4
-
Speech recognition request is invalid.
Declaration
Swift
case invalidSpeechRequest = -5
-
The audio engine is invalid.
Declaration
Swift
case invalidAudioEngine = -6
-
Voice recognition is unavailable.
Declaration
Swift
case recogniserUnavailble = -7
-
The OSSSpeechKit error message string.
The error message strings can be altered in the Localized strings file.
Declaration
Swift
public var errorMessage: String { get }
-
The highlevel type of error that occured.
A String will be used in the OSSSpeechKitErrorType error: Error? that is returned when an exception is thrown.
Declaration
Swift
public var errorRequestType: String { get }
-
An error that is used to capture details of the error event.
Declaration
Swift
public var error: Error? { get }