---
title: "init(wordRange:atByteSampleOffset:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avspeechsynthesismarker/init(wordrange:atbytesampleoffset:)"
---

# init(wordRange:atByteSampleOffset:)

Creates a word marker with a range of the word and offset into the audio buffer.

## Declaration

```swift
init(wordRange range: NSRange, atByteSampleOffset byteSampleOffset: Int)
```

## Parameters

- `range`: The location and length of the word.
- `byteSampleOffset`: The byte offset into the audio buffer.

## See Also

### Creating a marker

- [init(markerType:forTextRange:atByteSampleOffset:)](avfaudio/avspeechsynthesismarker/init(markertype:fortextrange: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)
