Skip to content

Polly  >  Structures  >  TextEvent

TextEvent

Structure Class

TextEvent dataclass

Contains text content to be synthesized into speech.

Attributes

flush_stream_configuration class-attribute instance-attribute
flush_stream_configuration: FlushStreamConfiguration | None = None

Configuration for controlling when synthesized audio flushes to the output stream.

text instance-attribute
text: str

The text content to synthesize. If you specify ssml as the TextType, follow the SSML format for the input text.

text_type class-attribute instance-attribute
text_type: TextType | None = None

Specifies whether the input text is plain text or SSML. Default: plain text.