The state of the task associated with the recognition request.


enum SFSpeechRecognitionTaskState : Int


Enumeration Cases

case canceling

Delivery of recognition results has finished, but audio recording may be ongoing.

case completed

Delivery of recognition requests has finished and audio recording has stopped.

case finishing

Audio recording has stopped, but delivery of recognition results may continue.

case running

Speech recognition (potentially including audio recording) is in progress.

case starting

Speech recognition (potentially including audio recording) has not yet started.

See Also

Monitoring Recognition Progress

var state: SFSpeechRecognitionTaskState

The current state of the speech recognition task.

var error: Error?

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