Skip to content

TextEvent

Source code in docs_src/capo_polly/types/text_event.py
class TextEvent(TypedDict, closed=True):
    text: "capo_polly.types.text.Text"
    """<p>The text content to synthesize. If you specify <code>ssml</code> as the <code>TextType</code>, follow the SSML format for the input text.</p>"""
    text_type: NotRequired["capo_polly.types.text_type.TextType"]
    """<p>Specifies whether the input text is plain text or SSML. Default: plain text.</p>"""
    flush_stream_configuration: NotRequired[
        "capo_polly.types.flush_stream_configuration.FlushStreamConfiguration"
    ]
    """<p>Configuration for controlling when synthesized audio flushes to the output stream.</p>"""

flush_stream_configuration instance-attribute

flush_stream_configuration: NotRequired[FlushStreamConfiguration]

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

text instance-attribute

text: Text

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

text_type instance-attribute

text_type: NotRequired[TextType]

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