---
title: "init(identifier:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avspeechsynthesisvoice/init(identifier:)"
---

# init(identifier:)

Retrieves a voice for the identifier you specify.

## Declaration

```swift
init?(identifier: String)
```

## Parameters

- `identifier`: The unique identifier for a voice.

## Return Value

Return Value A voice for the specified identifier if the identifier is valid and the voice is available on the device; otherwise, nil.

## See Also

### Obtaining voices

- [init(language:)](avfaudio/avspeechsynthesisvoice/init(language:).md)
- [speechVoices()](avfaudio/avspeechsynthesisvoice/speechvoices().md)
- [AVSpeechSynthesisVoiceIdentifierAlex](avfaudio/avspeechsynthesisvoiceidentifieralex.md)
