---
title: "init(name:identifier:primaryLanguages:supportedLanguages:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avspeechsynthesisprovidervoice/init(name:identifier:primarylanguages:supportedlanguages:)"
---

# init(name:identifier:primaryLanguages:supportedLanguages:)

Creates a voice with a name, an identifier, and language information.

## Declaration

```swift
init(name: String, identifier: String, primaryLanguages: [String], supportedLanguages: [String])
```

## Parameters

- `name`: The localized name of the voice.
- `identifier`: The unique identifier for the voice.
- `primaryLanguages`: A list of BCP 47 codes that identify the primary languages.
- `supportedLanguages`: A list of BCP 47 codes that identify the languages the voice supports.
