---
title: SFTranscriptionSegment
framework: speech
role: symbol
role_heading: Class
path: speech/sftranscriptionsegment
---

# SFTranscriptionSegment

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

## Declaration

```swift
class SFTranscriptionSegment
```

## Overview

Overview Use SFTranscriptionSegment to get details about a part of an overall SFTranscription. An SFTranscriptionSegment represents an utterance, which is a vocalized word or group of words that represent a single meaning to the speech recognizer (SFSpeechRecognizer). 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 formattedString of its parent SFTranscription. A confidence value, indicating how likely it is that the specified string matches the audible speech. A timestamp and duration value, indicating the position of the segment within the provided audio stream.

## Topics

### Transcribing the segment

- [substring](speech/sftranscriptionsegment/substring.md)
- [substringRange](speech/sftranscriptionsegment/substringrange.md)
- [alternativeSubstrings](speech/sftranscriptionsegment/alternativesubstrings.md)

### Assessing the recognition confidence level

- [confidence](speech/sftranscriptionsegment/confidence.md)

### Getting audio timing information

- [timestamp](speech/sftranscriptionsegment/timestamp.md)
- [duration](speech/sftranscriptionsegment/duration.md)

### Deprecated

- [voiceAnalytics](speech/sftranscriptionsegment/voiceanalytics.md)

### Initializers

- [init(coder:)](speech/sftranscriptionsegment/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Transcription results

- [SFSpeechRecognitionResult](speech/sfspeechrecognitionresult.md)
- [SFSpeechRecognitionMetadata](speech/sfspeechrecognitionmetadata.md)
- [SFTranscription](speech/sftranscription.md)
