---
title: "synthesizeSpeechRequest(_:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avspeechsynthesisprovideraudiounit/synthesizespeechrequest(_:)"
---

# synthesizeSpeechRequest(_:)

Sets the text to synthesize and the voice to use.

## Declaration

```swift
func synthesizeSpeechRequest(_ speechRequest: AVSpeechSynthesisProviderRequest)
```

## Parameters

- `speechRequest`: A speech request to synthesize.

## Discussion

Discussion When the synthesizer finishes generating audio buffers for the speech request, use AUInternalRenderBlock to report offlineUnitRenderAction_Complete.

## See Also

### Rendering speech

- [AVSpeechSynthesisProviderRequest](avfaudio/avspeechsynthesisproviderrequest.md)
