Type Method

speechVoices()

Returns all available voices.

Declaration

class func speechVoices() -> [AVSpeechSynthesisVoice]

Return Value

An array of AVSpeechSynthesisVoice objects, one for each available voice.

Discussion

Use the language property to differentiate between returned voices.

See Also

Finding Voices

init?(identifier: String)

Returns a voice object for the specified identifier.

init?(language: String?)

Returns a voice object for the specified language and locale.

let AVSpeechSynthesisVoiceIdentifierAlex: String

The voice object identified as Alex.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software