Structure

NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

Keys that identify errors that may occur during speech synthesis.

Declaration

struct ErrorKey

Overview

Use these keys in the errors dictionary.

Topics

Type Properties

static let count: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The number of errors that have occurred in processing the current text string, since the last call to object(forProperty:) with the errors property. An NSNumber

static let newestCharacterOffset: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The position in the text string of the most recent error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber.

static let newestCode: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The error code of the most recent error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber

static let oldestCharacterOffset: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The position in the text string of the first error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber

static let oldestCode: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey

The error code of the first error that occurred since the last call to object(forProperty:) with the errors property. An NSNumber

Relationships

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.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:).