OSSSpeechError
public enum OSSSpeechError : Error, LocalizedError
Typed failures emitted by the modern OSSSpeechKit API.
-
The provided speech text was empty or only whitespace.
Declaration
Swift
case emptyText -
No installed speech synthesis voice matched the requested locale.
Declaration
Swift
case voiceUnavailable(localeIdentifier: String) -
Speech recognition authorization was denied or unavailable.
Declaration
Swift
case speechAuthorizationDenied -
Microphone recording authorization was denied or unavailable.
Declaration
Swift
case microphoneAuthorizationDenied -
Speech recognition does not support the requested locale on this device.
Declaration
Swift
case recognitionLocaleUnsupported(String) -
The speech recognizer exists but is not currently available.
Declaration
Swift
case recognizerUnavailable -
AVFoundation could not configure or start the audio engine/session.
Declaration
Swift
case audioEngineFailure(underlying: Error?) -
A speech synthesis or recognition operation is already active.
Declaration
Swift
case operationInProgress -
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub
OSSSpeechError Enumeration Reference