Instance Method


Cancels the current speech recognition task.


func cancel()


You can cancel recognition tasks for both prerecorded and live audio input. For example, you might cancel a task in response to a user action or because the recording was interrupted.

When canceling a task, be sure to release any resources associated with the task, such as the audio input resources you are using to capture audio samples.

See Also

Canceling a Speech Recognition Task

var isCancelled: Bool

A Boolean value that indicates whether the speech recognition task was canceled.

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