Class

SFTranscriptionSegment

A part of the entire hypothesized transcription.

Declaration

@interface SFTranscriptionSegment : NSObject

Overview

Use an SFTranscriptionSegment object to get details about a portion of an overall transcription. You do not create transcription object segments directly. Instead, they are created for you and delivered in the SFTranscription object that is included with any speech recognition results.

Each transcription segment includes the following information:

  • The text of the segment, plus any alternative interpretations of the spoken word.

  • The character range of the segment within the formattedString of its parent SFTranscription object.

  • A confidence value, indicating how likely the specified string matches the audible speech.

  • A timestamp and duration value, indicating the position of the segment within the provided audio stream.

Topics

Getting the Segment's Recognized Text

substring

The string representation of the utterance in this transcription segment.

substringRange

The range information for this transcription segment's substring, relative to the overall hypothesized transcription.

alternativeSubstrings

An array of alternate interpretations of the utterance in this transcription segment.

Getting the Recognition Confidence Level

confidence

The level of confidence in the accuracy of the recognition for this transcription segment.

Getting the Audio Timing Information

timestamp

The start time of the segment in the processed audio stream.

duration

The number of seconds it took for the user to say the word represented by the segment, measured from the start of the utterance.

Relationships

Inherits From

See Also

Transcription Results

SFSpeechRecognitionResult

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

SFTranscription

A textual representation of the recognized speech.