<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpeechSynthesizer/VoiceAttributeKey/localeIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSVoiceLocaleIdentifier"
  },
  "title" : "localeIdentifier"
}
-->

# localeIdentifier

The language of the voice.  An `NSString`

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

## 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. For more information, see <doc://com.apple.documentation/documentation/Foundation/NSLocale>.

---

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)