---
title: AVSpeechSynthesizer.MarkerCallback
framework: avfaudio
role: symbol
role_heading: Type Alias
path: avfaudio/avspeechsynthesizer/markercallback
---

# AVSpeechSynthesizer.MarkerCallback

A type that defines a callback that receives speech markers.

## Declaration

```swift
typealias MarkerCallback = ([AVSpeechSynthesisMarker]) -> Void
```

## Parameters

- `markers`: An array of speech synthesis markers.

## See Also

### Directing speech output

- [usesApplicationAudioSession](avfaudio/avspeechsynthesizer/usesapplicationaudiosession.md)
- [mixToTelephonyUplink](avfaudio/avspeechsynthesizer/mixtotelephonyuplink.md)
- [outputChannels](avfaudio/avspeechsynthesizer/outputchannels.md)
- [write(_:toBufferCallback:)](avfaudio/avspeechsynthesizer/write(_:tobuffercallback:).md)
- [AVSpeechSynthesizer.BufferCallback](avfaudio/avspeechsynthesizer/buffercallback.md)
- [write(_:toBufferCallback:toMarkerCallback:)](avfaudio/avspeechsynthesizer/write(_:tobuffercallback:tomarkercallback:).md)
