---
title: "attributes(forVoice:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsspeechsynthesizer/attributes(forvoice:)"
---

# attributes(forVoice:)

Provides the attribute dictionary of a voice.

## Declaration

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

## Parameters

- `voice`: Identifier of the voice whose attributes you want to obtain.

## Return Value

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

## See Also

### Getting Speech Synthesizer Information

- [availableVoices](appkit/nsspeechsynthesizer/availablevoices.md)
- [defaultVoice](appkit/nsspeechsynthesizer/defaultvoice.md)
- [NSSpeechSynthesizer.VoiceName](appkit/nsspeechsynthesizer/voicename.md)
- [NSSpeechSynthesizer.VoiceAttributeKey](appkit/nsspeechsynthesizer/voiceattributekey.md)
