speechmarkdown.formatters.amazon_polly_neural#

Classes#

AmazonPollyNeuralSsmlFormatter

Abstract base class for all Speech Markdown formatters.

Module Contents#

class speechmarkdown.formatters.amazon_polly_neural.AmazonPollyNeuralSsmlFormatter(options: speechmarkdown.options.SpeechOptions)[source]#

Bases: speechmarkdown.formatters.ssml_base.SsmlFormatterBase

Abstract base class for all Speech Markdown formatters.

valid_voices[source]#
get_text_modifier_object(ast: speechmarkdown.parser.ASTNode) speechmarkdown.formatters.ssml_base.TagsObject[source]#
get_section_object(ast: speechmarkdown.parser.ASTNode) speechmarkdown.formatters.ssml_base.TagsObject[source]#
formatFromAst(ast: speechmarkdown.parser.ASTNode, lines: List[str] | None = None) List[str][source]#

Format a single AST node into output strings.

Parameters:
  • ast (ASTNode) – Target formatting node.

  • lines (Optional[List[str]]) – Active output lines collection.

Returns:

Updated output lines collection.

Return type:

List[str]