A speech recognition task that lets you monitor recognition progress.
A speech recognizer returns an
SFSpeechRecognitionTask object when it begins recognition. You can use the task object to monitor the progress of speech recognition and cancel it, if necessary.
Canceling a Speech Recognition Task
var isCancelled: Bool
A Boolean value that indicates whether the speech recognition task has been canceled.
Finishing a Speech Recognition Task
Stops accepting new audio and finishes processing on the audio input that has already been accepted.
Monitoring Recognition Progress
var error: Error?
An error object that specifies the error that occurred during a speech recognition task.
Requesting Recognition and Monitoring Progress