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 given speech it its entirety, as recognized by the speech recognizer.

SFTranscriptionSegment

A discrete part of an entire transcription, as identified by the speech recognizer.

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