Instance Property

state

The current state of the speech recognition task.

Declaration

var state: SFSpeechRecognitionTaskState { get }

Discussion

Check the value of this property to get the state of the in-progress speech recognition session. For valid values, see SFSpeechRecognitionTaskState.

See Also

Monitoring Recognition Progress

enum SFSpeechRecognitionTaskState

The state of the task associated with the recognition request.

var error: Error?

An error object that specifies the error that occurred during a speech recognition task.