init(attributedString:)
Creates an utterance with the attributed text string that you specify for the speech synthesizer to speak.
Declaration
init(attributedString string: NSAttributedString)Parameters
- string:
A string that contains the text to speak.
Discussion
To speak the text, pass the utterance to an instance of AVSpeechSynthesizer.