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

# SFSpeechLanguageModel.Configuration

An object describing the location of a custom language model and specialized vocabulary.

## Declaration

```swift
class Configuration
```

## Overview

Overview Pass this object to prepareCustomLanguageModel(for:configuration:completion:) to indicate where that method should create the custom language model file, and to customizedLanguageModel or customizedLanguage(modelConfiguration:) to indicate where the system should find that model to use.

## Topics

### Creating a language model configuration

- [init(languageModel:)](speech/sfspeechlanguagemodel/configuration/init(languagemodel:).md)
- [init(languageModel:vocabulary:)](speech/sfspeechlanguagemodel/configuration/init(languagemodel:vocabulary:).md)
- [init(languageModel:vocabulary:weight:)](speech/sfspeechlanguagemodel/configuration/init(languagemodel:vocabulary:weight:).md)

### Inspecting a language model

- [languageModel](speech/sfspeechlanguagemodel/configuration/languagemodel.md)
- [vocabulary](speech/sfspeechlanguagemodel/configuration/vocabulary.md)
- [weight](speech/sfspeechlanguagemodel/configuration/weight.md)

### Initializers

- [init(coder:)](speech/sfspeechlanguagemodel/configuration/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)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Custom vocabulary

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