---
title: DictationTranscriber
framework: speech
role: symbol
role_heading: Class
path: speech/dictationtranscriber
---

# DictationTranscriber

A speech-to-text transcription module that’s similar to system dictation features and compatible with older devices.

## Declaration

```swift
final class DictationTranscriber
```

## Overview

Overview This transcriber uses the same speech-to-text machine learning models as system dictation features do, or as SFSpeechRecognizer does when it is configured for on-device operation. This transcriber does not support languages or locales that SFSpeechRecognizer only supports via network access. Several transcriber instances can share the same backing engine instances and models, so long as the transcribers are configured similarly in certain respects. Improve accuracy You can bias recognition towards certain words, supply custom vocabulary, or adjust the transcriber’s algorithm to improve the transcriber’s accuracy. To bias recognition towards certain words, create an AnalysisContext object and add those words to its contextualStrings property. Create a SpeechAnalyzer instance with that context object or set the analyzer’s context property. To supply custom vocabulary, create an SFSpeechLanguageModel object and configure the transcriber with a corresponding customizedLanguage(modelConfiguration:) option. To adjust the transcriber’s algorithm, configure the transcriber with relevant DictationTranscriber.ContentHint parameter. For example, you may use farField hint to improve accuracy of distant speech.

## Topics

### Creating a transcriber

- [init(locale:preset:)](speech/dictationtranscriber/init(locale:preset:).md)
- [init(locale:contentHints:transcriptionOptions:reportingOptions:attributeOptions:)](speech/dictationtranscriber/init(locale:contenthints:transcriptionoptions:reportingoptions:attributeoptions:).md)
- [DictationTranscriber.Preset](speech/dictationtranscriber/preset.md)

### Configuring transcription

- [DictationTranscriber.ContentHint](speech/dictationtranscriber/contenthint.md)
- [DictationTranscriber.ReportingOption](speech/dictationtranscriber/reportingoption.md)
- [DictationTranscriber.ResultAttributeOption](speech/dictationtranscriber/resultattributeoption.md)
- [DictationTranscriber.TranscriptionOption](speech/dictationtranscriber/transcriptionoption.md)

### Checking locale support

- [installedLocales](speech/dictationtranscriber/installedlocales.md)
- [supportedLocales](speech/dictationtranscriber/supportedlocales.md)
- [supportedLocale(equivalentTo:)](speech/dictationtranscriber/supportedlocale(equivalentto:).md)

### Getting results

- [results](speech/dictationtranscriber/results.md)
- [DictationTranscriber.Result](speech/dictationtranscriber/result.md)

## Relationships

### Conforms To

- [LocaleDependentSpeechModule](speech/localedependentspeechmodule.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SpeechModule](speech/speechmodule.md)

## See Also

### Modules

- [SpeechTranscriber](speech/speechtranscriber.md)
- [SpeechDetector](speech/speechdetector.md)
- [SpeechModule](speech/speechmodule.md)
- [LocaleDependentSpeechModule](speech/localedependentspeechmodule.md)
