---
title: "init(markerType:forTextRange:atByteSampleOffset:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avspeechsynthesismarker/init(markertype:fortextrange:atbytesampleoffset:)"
---

# init(markerType:forTextRange:atByteSampleOffset:)

Creates a marker with a type and location of the request’s text.

## Declaration

```swift
init(markerType type: AVSpeechSynthesisMarker.Mark, forTextRange range: NSRange, atByteSampleOffset byteSampleOffset: Int)
```

## Parameters

- `type`: The type that describes the text.
- `range`: The location and length of the request’s text.
- `byteSampleOffset`: The byte offset into the audio buffer.

## See Also

### Creating a marker

- [init(wordRange:atByteSampleOffset:)](avfaudio/avspeechsynthesismarker/init(wordrange:atbytesampleoffset:).md)
- [init(sentenceRange:atByteSampleOffset:)](avfaudio/avspeechsynthesismarker/init(sentencerange:atbytesampleoffset:).md)
- [init(paragraphRange:atByteSampleOffset:)](avfaudio/avspeechsynthesismarker/init(paragraphrange:atbytesampleoffset:).md)
- [init(phonemeString:atByteSampleOffset:)](avfaudio/avspeechsynthesismarker/init(phonemestring:atbytesampleoffset:).md)
- [init(bookmarkName:atByteSampleOffset:)](avfaudio/avspeechsynthesismarker/init(bookmarkname:atbytesampleoffset:).md)
