<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFCustomLanguageModelData/init(locale:identifier:version:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech25SFCustomLanguageModelDataC6locale10identifier7versionAC10Foundation6LocaleV_S2Stcfc"
  },
  "title" : "init(locale:identifier:version:)"
}
-->

# init(locale:identifier:version:)

Constructs an empty data container.

```
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

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.

---

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)