A discrete part of an entire transcription, as identified by the speech recognizer.
SDKs
- iOS 10.0+
- macOS 10.15+
- Mac Catalyst 13.0+
Framework
- Speech
Declaration
class SFTranscriptionSegment : NSObject
Overview
Use SFTranscription
to get details about a part of an overall SFTranscription
. An SFTranscription
represents an utterance, which is a vocalized word or group of words that represent a single meaning to the speech recognizer (SFSpeech
).
You don’t create transcription object segments directly. Instead, you access them from a transcription’s segments
property.
A transcription segment includes the following information:
The text of the utterance, plus any alternative interpretations of the spoken word.
The character range of the segment within the
formatted
of its parentString SFTranscription
.A
confidence
value, indicating how likely it is that the specified string matches the audible speech.A
timestamp
andduration
value, indicating the position of the segment within the provided audio stream.A
voice
metric, indicating the likelihood of a voice in a segment, and that voice’sAnalytics pitch
,jitter
, andshimmer
properties.