A distinct voice for use in speech synthesis.
- iOS 7.0+
- macOS 10.14+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
In speech synthesis, voices are distinguished primarily by language, locale, and quality. 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
AVSpeech instance using one of the methods in Finding Voices, and then set it as the value of the
voice property on an
AVSpeech instance containing text to be spoken. For a complete list of supported languages, see Languages Supported by VoiceOver.