<!--
{
  "availability" : [
    "macOS: 10.3.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpeechSynthesizer/attributes(forVoice:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSpeechSynthesizer(cm)attributesForVoice:"
  },
  "title" : "attributes(forVoice:)"
}
-->

# attributes(forVoice:)

Provides the attribute dictionary of a voice.

```
class func attributes(forVoice voice: NSSpeechSynthesizer.VoiceName) -> [NSSpeechSynthesizer.VoiceAttributeKey : Any]
```

## Parameters

`voice`

Identifier of the voice whose attributes you want to obtain.

## Return Value

Attribute dictionary of the voice identified by `voiceIdentifier`. The attributes keys and value types are listed in `Voice Attributes Keys`

---

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)