---
title: "init(locale:identifier:version:)"
framework: speech
role: symbol
role_heading: Initializer
path: "speech/sfcustomlanguagemodeldata/init(locale:identifier:version:)"
---

# init(locale:identifier:version:)

Constructs an empty data container.

## Declaration

```swift
init(locale: Locale, identifier: String, version: String)
```

## Parameters

- `locale`: The region and language of the training data (must match with the locale used to construct the SFSpeechRecognizer later)
- `identifier`: Used to uniquely identify the resulting language model on the device where it will be processed
- `version`: Used to distinguish different versions of the language model on the device where it will be processed

## Discussion

Discussion The SFCustomLanguageModelData class accumulates language model training and custom vocabulary data, both associated with a specified locale. This initializer creates an object that initially holds no data.

## See Also

### Creating a model data container

- [init(locale:identifier:version:builder:)](speech/sfcustomlanguagemodeldata/init(locale:identifier:version:builder:).md)
- [SFCustomLanguageModelData.DataInsertableBuilder](speech/sfcustomlanguagemodeldata/datainsertablebuilder.md)
