<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVSpeechUtterance/init(string:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSpeechUtterance(im)initWithString:"
  },
  "title" : "init(string:)"
}
-->

# init(string:)

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

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

## Parameters

`string`

A string that contains the text to speak.

## Return Value

An [`AVSpeechUtterance`](/documentation/AVFAudio/AVSpeechUtterance) object that can speak the specified text.

## Discussion

To speak the text, pass the utterance to an instance of [`AVSpeechSynthesizer`](/documentation/AVFAudio/AVSpeechSynthesizer).

---

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)