---
title: "prepareCustomLanguageModel(for:clientIdentifier:configuration:completion:)"
framework: speech
role: symbol
role_heading: Type Method
path: "speech/sfspeechlanguagemodel/preparecustomlanguagemodel(for:clientidentifier:configuration:completion:)"
---

# prepareCustomLanguageModel(for:clientIdentifier:configuration:completion:)

## Declaration

```swift
class func prepareCustomLanguageModel(for asset: URL, clientIdentifier: String, configuration: SFSpeechLanguageModel.Configuration, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
class func prepareCustomLanguageModel(for asset: URL, clientIdentifier: String, configuration: SFSpeechLanguageModel.Configuration) async throws
```
