---
title: localeIdentifier
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsspeechsynthesizer/voiceattributekey/localeidentifier
---

# localeIdentifier

The language of the voice.  An NSString

## Declaration

```swift
static let localeIdentifier: NSSpeechSynthesizer.VoiceAttributeKey
```

## Discussion

Discussion The canonical locale identifier string describing the voice’s locale. A locale is generally composed of three pieces of ordered information: a language code, a region code, and a variant code.  Refer to documentation about the NSLocale class or Internationalization and Localization Guide for more information.

## See Also

### Voice Attribute Keys

- [identifier](appkit/nsspeechsynthesizer/voiceattributekey/identifier.md)
- [name](appkit/nsspeechsynthesizer/voiceattributekey/name.md)
- [age](appkit/nsspeechsynthesizer/voiceattributekey/age.md)
- [gender](appkit/nsspeechsynthesizer/voiceattributekey/gender.md)
- [demoText](appkit/nsspeechsynthesizer/voiceattributekey/demotext.md)
- [supportedCharacters](appkit/nsspeechsynthesizer/voiceattributekey/supportedcharacters.md)
- [individuallySpokenCharacters](appkit/nsspeechsynthesizer/voiceattributekey/individuallyspokencharacters.md)
