<!--
{
  "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/insert(term:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech25SFCustomLanguageModelDataC6insert4termyAC19CustomPronunciationV_tF"
  },
  "title" : "insert(term:)"
}
-->

# insert(term:)

Add a custom term to the vocabulary.

```
func insert(term: SFCustomLanguageModelData.CustomPronunciation)
```

## Parameters

`term`

A token, paired with an X-SAMPA representation of the token’s pronunciation

## Discussion

This class accumulates vocabulary data (in the form of tokens paired with X-SAMPA representations
of the spoken forms of those tokens) which will later be processed and then provided to an `SFSpeechRecognizer`,
to enable it to recognize words that are typically out-of-vocabulary.

---

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)