Class

SFSpeechRecognitionTask

A task object that you use to monitor the speech recognition progress.

Declaration

@interface SFSpeechRecognitionTask : NSObject

Overview

Use an SFSpeechRecognitionTask object to determine the state of a speech recognition task, to cancel an ongoing task, or to signal the end of the task.

You do not create speech recognition task objects directly. Instead, you receive one of these objects after calling recognitionTaskWithRequest:resultHandler: or recognitionTaskWithRequest:delegate: on your SFSpeechRecognizer object.

Topics

Canceling a Speech Recognition Task

- cancel

Cancels the current speech recognition task.

cancelled

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

Finishing a Speech Recognition Task

- finish

Stops accepting new audio and finishes processing on the audio input that has already been accepted.

finishing

A Boolean value that indicates whether audio input has stopped.

Monitoring Recognition Progress

state

The current state of the speech recognition task.

SFSpeechRecognitionTaskState

The state of the task associated with the recognition request.

error

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

Relationships

Inherits From