---
title: SFTranscription
framework: speech
role: symbol
role_heading: Class
path: speech/sftranscription
---

# SFTranscription

A textual representation of the specified speech in its entirety, as recognized by the speech recognizer.

## Declaration

```swift
class SFTranscription
```

## Overview

Overview Use SFTranscription to obtain all the recognized utterances from your audio content. An utterance is a vocalized word or group of words that represent a single meaning to the speech recognizer (SFSpeechRecognizer). Use the formattedString property to retrieve the entire transcription of utterances, or use the segments property to retrieve an individual utterance (SFTranscriptionSegment). You don’t create an SFTranscription directly. Instead, you retrieve it from an SFSpeechRecognitionResult instance. The speech recognizer sends a speech recognition result to your app in one of two ways, depending on how your app started a speech recognition task. You can start a speech recognition task by using the speech recognizer’s recognitionTask(with:resultHandler:) method. When the task is complete, the speech recognizer sends an SFSpeechRecognitionResult instance to your resultHandler closure. Alternatively, you can use the speech recognizer’s recognitionTask(with:delegate:) method to start a speech recognition task. When the task is complete, the speech recognizer uses your SFSpeechRecognitionTaskDelegate to send an SFSpeechRecognitionResult by using the delegate’s speechRecognitionTask(_:didFinishRecognition:) method. An SFTranscription represents only a potential version of the speech. It might not be an accurate representation of the utterances.

## Topics

### Transcribing utterances

- [formattedString](speech/sftranscription/formattedstring.md)

### Getting individual utterances

- [segments](speech/sftranscription/segments.md)

### Deprecated

- [averagePauseDuration](speech/sftranscription/averagepauseduration.md)
- [speakingRate](speech/sftranscription/speakingrate.md)

### Initializers

- [init(coder:)](speech/sftranscription/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)
- [SFTranscriptionSegment](speech/sftranscriptionsegment.md)
