init(ssmlRepresentation:)
Creates a speech utterance with an Speech Synthesis Markup Language (SSML) string.
Declaration
init?(ssmlRepresentation string: String)Parameters
- string:
A string to speak that contains valid SSML markup. The initializer returns
nilif you pass an invalid SSML string.
Discussion
If using SSML to request voices that fall under certain attributes, the system may split a single utterance into multiple parts and send each to an appropriate synthesizer.
If no voice matches the properties, the utterance uses the voice set in its voice property. If you don’t specify a voice, the system uses its default voice.