Class

AVSpeechSynthesisVoice

A distinct voice for use in speech synthesis.

Overview

Voices are distinguished primarily by language, locale, and quality.

You can use this class to select a voice appropriate to the language of text to be spoken, or to select a voice exhibiting a particular local variant of that language (such as Australian or South African English).

To select a voice for use in speech, obtain an AVSpeechSynthesisVoice instance using one of the methods in Finding Voices, and then set it as the value of the voice property on an AVSpeechUtterance instance containing text to be spoken.

Topics

Finding Voices

Working with Language Codes

class func currentLanguageCode()

Returns the code for the user’s current locale.

var language: String

A BCP-47 code identifying the voice’s language and locale.

Relationships

Inherits From

See Also

Spoken Text Attributes

class AVSpeechUtterance

A chunk of text to be spoken, along with parameters that affect its speech.