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.