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

# insert(template:count:)

Add a template to be used to generate data samples.

## Declaration

```swift
func insert(template: String, count: Int)
```

## Parameters

- `template`: A string, possibly containing references to classes enclosed in angle brackets.
- `count`: The total number of data samples that will be generated by expanding the template string.

## See Also

### Adding a template

- [SFCustomLanguageModelData.TemplatePhraseCountGenerator.Template](speech/sfcustomlanguagemodeldata/templatephrasecountgenerator/template.md)
