---
title: "init(ssmlRepresentation:voice:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avspeechsynthesisproviderrequest/init(ssmlrepresentation:voice:)-7elh"
---

# init(ssmlRepresentation:voice:)

Creates a request with a voice and a description.

## Declaration

```swift
init(ssmlRepresentation text: String, voice: AVSpeechSynthesisProviderVoice)
```

## Parameters

- `text`: The description of the text to synthesize.
- `voice`: The voice to use in the speech request.
