<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVSpeechSynthesisVoice/init(language:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSpeechSynthesisVoice(cm)voiceWithLanguage:"
  },
  "title" : "init(language:)"
}
-->

# init(language:)

Retrieves a voice for the BCP 47 code language code you specify.

```
init?(language languageCode: String?)
```

## Return Value

A voice for the specified language and locale code if the code is valid; otherwise, `nil`.

## Discussion

- languageCode: A BCP 47 code that identifies the language and locale for a voice.

## Discussion

Pass `nil` for `languageCode` to receive the default voice for the system’s language and region.

---

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)