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

# insert(phraseCount:)

Add a sample to the body of training data.

```
func insert(phraseCount: SFCustomLanguageModelData.PhraseCount)
```

## Parameters

`phraseCount`

A sample of text on which to train your custom language model

## Discussion

This class accumulates text data that will later be used to train a language model, which can
be provided to an `SFSpeechRecognizer` to improve performance on certain phrases.

---

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)