---
title: primaryLanguages
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avspeechsynthesisprovidervoice/primarylanguages
---

# primaryLanguages

A list of BCP 47 codes that identify the languages the synthesizer uses.

## Declaration

```swift
var primaryLanguages: [String] { get }
```

## Discussion

Discussion These languages are what a voice primarily supports. For example, if the primary language is zh-CN — with no additional supportedLanguages — the system may switch voices to speak a phrase that contains other languages. Changing voices depends on user preferences and what accessibility feature is using the voice.

## See Also

### Inspecting a voice

- [age](avfaudio/avspeechsynthesisprovidervoice/age.md)
- [gender](avfaudio/avspeechsynthesisprovidervoice/gender.md)
- [AVSpeechSynthesisVoiceGender](avfaudio/avspeechsynthesisvoicegender.md)
- [identifier](avfaudio/avspeechsynthesisprovidervoice/identifier.md)
- [name](avfaudio/avspeechsynthesisprovidervoice/name.md)
- [supportedLanguages](avfaudio/avspeechsynthesisprovidervoice/supportedlanguages.md)
- [version](avfaudio/avspeechsynthesisprovidervoice/version.md)
- [voiceSize](avfaudio/avspeechsynthesisprovidervoice/voicesize.md)
