---
title: "speechSynthesizer(_:willSpeak:utterance:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:willspeak:utterance:)"
---

# speechSynthesizer(_:willSpeak:utterance:)

Tells the delegate when the synthesizer is about to speak a marker of an utterance’s text.

## Declaration

```swift
optional func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, willSpeak marker: AVSpeechSynthesisMarker, utterance: AVSpeechUtterance)
```

## Parameters

- `synthesizer`: The speech synthesizer that’s about to speak a marker of an utterance.
- `marker`: The synthesized audio that the speech synthesizer is about to speak.
- `utterance`: The utterance that the speech synthesizer pauses speaking.

## See Also

### Responding to speech synthesis events

- [speechSynthesizer(_:didStart:)](avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:didstart:).md)
- [speechSynthesizer(_:willSpeakRangeOfSpeechString:utterance:)](avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:willspeakrangeofspeechstring:utterance:).md)
- [speechSynthesizer(_:didPause:)](avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:didpause:).md)
- [speechSynthesizer(_:didContinue:)](avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:didcontinue:).md)
- [speechSynthesizer(_:didFinish:)](avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:didfinish:).md)
- [speechSynthesizer(_:didCancel:)](avfaudio/avspeechsynthesizerdelegate/speechsynthesizer(_:didcancel:).md)
