MessageType

public enum MessageType

Defines various message types that can be consumed by the TTS engine. Specifies the format of the message content.

The MessageType enum provides two types of messages that can be processed by the Text-to-Speech (TTS) engine: plain text and Speech Synthesis Markup Language (SSML). Use plain for simple text messages, and ssml for more complex messages that include speech synthesis markup tags.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Plain text message.

    Use this type for simple, unformatted text messages.

    Declaration

    Swift

    case plain
  • SSML formatted message.

    Use this type for messages that include SSML tags to control speech synthesis aspects like pronunciation, pitch, and speed.

    Declaration

    Swift

    case ssml