<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVSpeechSynthesisProviderVoice/init(name:identifier:primaryLanguages:supportedLanguages:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSpeechSynthesisProviderVoice(im)initWithName:identifier:primaryLanguages:supportedLanguages:"
  },
  "title" : "init(name:identifier:primaryLanguages:supportedLanguages:)"
}
-->

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

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

```
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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)