---
title: "init(string:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avspeechutterance/init(string:)"
---

# init(string:)

Creates an utterance with the text string that you specify for the speech synthesizer to speak.

## Declaration

```swift
init(string: String)
```

## Parameters

- `string`: A string that contains the text to speak.

## Return Value

Return Value An AVSpeechUtterance object that can speak the specified text.

## Discussion

Discussion To speak the text, pass the utterance to an instance of AVSpeechSynthesizer.

## See Also

### Creating an utterance

- [init(attributedString:)](avfaudio/avspeechutterance/init(attributedstring:).md)
- [AVSpeechSynthesisIPANotationAttribute](avfaudio/avspeechsynthesisipanotationattribute.md)
- [init(ssmlRepresentation:)](avfaudio/avspeechutterance/init(ssmlrepresentation:)-8zam9.md)
