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

# init(languageModel:vocabulary:)

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

## Declaration

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

## See Also

### Creating a language model configuration

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