Contents

init(string:)

Creates an utterance with the text string that you specify for the speech synthesizer to speak.

Declaration

init(string: String)

Parameters

  • string:

    A string that contains the text to speak.

Return Value

An AVSpeechUtterance object that can speak the specified text.

Discussion

To speak the text, pass the utterance to an instance of AVSpeechSynthesizer.

See Also

Creating an utterance