---
title: SFSpeechLanguageModel
framework: speech
role: symbol
role_heading: Class
path: speech/sfspeechlanguagemodel
---

# SFSpeechLanguageModel

A language model built from custom training data.

## Declaration

```swift
class SFSpeechLanguageModel
```

## Overview

Overview Create this object using prepareCustomLanguageModel(for:configuration:completion:) or prepareCustomLanguageModel(for:configuration:ignoresCache:completion:).

## Topics

### Creating a custom language model

- [prepareCustomLanguageModel(for:configuration:completion:)](speech/sfspeechlanguagemodel/preparecustomlanguagemodel(for:configuration:completion:).md)
- [prepareCustomLanguageModel(for:configuration:ignoresCache:completion:)](speech/sfspeechlanguagemodel/preparecustomlanguagemodel(for:configuration:ignorescache:completion:).md)
- [SFSpeechLanguageModel.Configuration](speech/sfspeechlanguagemodel/configuration.md)

### Type Methods

- [prepareCustomLanguageModel(for:clientIdentifier:configuration:completion:)](speech/sfspeechlanguagemodel/preparecustomlanguagemodel(for:clientidentifier:configuration:completion:).md)
- [prepareCustomLanguageModel(for:clientIdentifier:configuration:ignoresCache:completion:)](speech/sfspeechlanguagemodel/preparecustomlanguagemodel(for:clientidentifier:configuration:ignorescache:completion:).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)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom vocabulary

- [AnalysisContext](speech/analysiscontext.md)
- [SFSpeechLanguageModel.Configuration](speech/sfspeechlanguagemodel/configuration.md)
- [SFCustomLanguageModelData](speech/sfcustomlanguagemodeldata.md)
