<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFSpeechLanguageModel",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSpeechLanguageModel"
  },
  "title" : "SFSpeechLanguageModel"
}
-->

# SFSpeechLanguageModel

A language model built from custom training data.

```
class SFSpeechLanguageModel
```

## Overview

Create this object using [`prepareCustomLanguageModel(for:configuration:completion:)`](/documentation/Speech/SFSpeechLanguageModel/prepareCustomLanguageModel(for:configuration:completion:)) or [`prepareCustomLanguageModel(for:configuration:ignoresCache:completion:)`](/documentation/Speech/SFSpeechLanguageModel/prepareCustomLanguageModel(for:configuration:ignoresCache:completion:)).

## Topics

### Creating a custom language model

[`prepareCustomLanguageModel(for:configuration:completion:)`](/documentation/Speech/SFSpeechLanguageModel/prepareCustomLanguageModel(for:configuration:completion:))

Creates a language model from custom training data.

[`prepareCustomLanguageModel(for:configuration:ignoresCache:completion:)`](/documentation/Speech/SFSpeechLanguageModel/prepareCustomLanguageModel(for:configuration:ignoresCache:completion:))

Creates a language model from custom training data.

[`SFSpeechLanguageModel.Configuration`](/documentation/Speech/SFSpeechLanguageModel/Configuration)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)