Instance Method

object(forProperty:)

Provides the value of a receiver’s property.

Declaration

func object(forProperty property: NSSpeechSynthesizer.SpeechPropertyKey) throws -> Any

Parameters

speechProperty

Property to get.

out_error

On output, error that occurred while obtaining the value of speechProperty.

Return Value

The value of speechProperty.

Discussion

See Also

Configuring Speech Attributes

func addSpeechDictionary([NSSpeechSynthesizer.DictionaryKey : Any])

Registers the given speech dictionary with the receiver.

struct NSSpeechSynthesizer.DictionaryKey

These constants identify key-value pairs used to add vocabulary to the dictionary using addSpeechDictionary(_:).

struct NSSpeechSynthesizer.SpeechPropertyKey

These constants are used with setObject(_:forProperty:) and object(forProperty:) to get or set the characteristics of a synthesizer.

struct NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

Keys that identify errors that may occur during speech synthesis.

struct NSSpeechSynthesizer.SpeechPropertyKey.PhonemeInfoKey

Keys for the speech phoneme information.

struct NSSpeechSynthesizer.SpeechPropertyKey.StatusKey

Keys for the speech synthesizier status.

struct NSSpeechSynthesizer.SpeechPropertyKey.SynthesizerInfoKey

Keys for the speech synthesizier information.

struct NSSpeechSynthesizer.VoiceGender

The following constants define voice gender attributes, which are the allowable values of the gender key returned by attributes(forVoice:).