Class

SFSpeechRecognitionResult

An object containing the partial or final results of a speech recognition request.

Declaration

@interface SFSpeechRecognitionResult : NSObject

Overview

Use an SFSpeechRecognitionResult object to retrieve the results of a speech recognition request. You do not create these objects directly. Instead, the Speech framework creates them and passes them to the handler block or delegate object you specified when starting your speech recognition task.

A speech recognition result object contains one or more transcriptions of the current utterance. Each transcription has a confidence rating indicating how likely it is to be correct. (You can also get the transcription with the highest rating directly from the bestTranscription property.)

If you requested partial results from the speech recognizer, the transcriptions may represent only part of the total audio content. Use the final property to determine if the request contains partial or final results.

Topics

Getting the Transcriptions

bestTranscription

The transcription with the highest confidence level.

transcriptions

An array of potential transcriptions, sorted in descending order of confidence.

Determining Whether the Transcriptions Are Final

final

A Boolean value that indicates whether speech recognition is complete and whether the transcriptions are final.

Relationships

Inherits From

See Also

Transcription Results

SFTranscription

A textual representation of the recognized speech.

SFTranscriptionSegment

A part of the entire hypothesized transcription.