---
title: "init(languageModel:vocabulary:weight:)"
framework: speech
role: symbol
role_heading: Initializer
path: "speech/sfspeechlanguagemodel/configuration/init(languagemodel:vocabulary:weight:)"
---

# init(languageModel:vocabulary:weight:)

Creates a configuration with the locations of language model and vocabulary files, and custom weight.

## Declaration

```swift
init(languageModel: URL, vocabulary: URL?, weight: NSNumber?)
```

## See Also

### Creating a language model configuration

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