---
title: "addSpeechDictionary(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspeechsynthesizer/addspeechdictionary(_:)"
---

# addSpeechDictionary(_:)

Registers the given speech dictionary with the receiver.

## Declaration

```swift
func addSpeechDictionary(_ speechDictionary: [NSSpeechSynthesizer.DictionaryKey : Any])
```

## Parameters

- `speechDictionary`: Speech dictionary to add to the receiver’s dictionaries. The key-value pairs are listed in Speech Dictionary Properties Keys.

## Discussion

Discussion See the discussion of UseSpeechDictionary(_:_:) in Speech Synthesis Manager for more information.

## See Also

### Configuring Speech Attributes

- [NSSpeechSynthesizer.DictionaryKey](appkit/nsspeechsynthesizer/dictionarykey.md)
- [object(forProperty:)](appkit/nsspeechsynthesizer/object(forproperty:).md)
- [setObject(_:forProperty:)](appkit/nsspeechsynthesizer/setobject(_:forproperty:).md)
- [NSSpeechSynthesizer.SpeechPropertyKey](appkit/nsspeechsynthesizer/speechpropertykey.md)
- [NSSpeechSynthesizer.SpeechPropertyKey.CommandDelimiterKey](appkit/nsspeechsynthesizer/speechpropertykey/commanddelimiterkey.md)
- [NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey](appkit/nsspeechsynthesizer/speechpropertykey/errorkey.md)
- [NSSpeechSynthesizer.SpeechPropertyKey.Mode](appkit/nsspeechsynthesizer/speechpropertykey/mode.md)
- [NSSpeechSynthesizer.SpeechPropertyKey.PhonemeInfoKey](appkit/nsspeechsynthesizer/speechpropertykey/phonemeinfokey.md)
- [NSSpeechSynthesizer.SpeechPropertyKey.StatusKey](appkit/nsspeechsynthesizer/speechpropertykey/statuskey.md)
- [NSSpeechSynthesizer.SpeechPropertyKey.SynthesizerInfoKey](appkit/nsspeechsynthesizer/speechpropertykey/synthesizerinfokey.md)
- [NSSpeechSynthesizer.VoiceGender](appkit/nsspeechsynthesizer/voicegender.md)
