---
title: "insert(term:)"
framework: speech
role: symbol
role_heading: Instance Method
path: "speech/sfcustomlanguagemodeldata/insert(term:)"
---

# insert(term:)

Add a custom term to the vocabulary.

## Declaration

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

## Parameters

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

## Discussion

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.

## See Also

### Adding terms

- [supportedPhonemes(locale:)](speech/sfcustomlanguagemodeldata/supportedphonemes(locale:).md)
- [SFCustomLanguageModelData.CustomPronunciation](speech/sfcustomlanguagemodeldata/custompronunciation.md)
