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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software