Module text_to_polly_ssml::parser [] [src]

Structs

EndTag
OneItem
StartTag

Functions

parse_as_ssml

Parses some text as SSML. It should note the error here allows for a lot of wiggle room. It's still totally possible to generate invalid SSML with this. This simply does what the user tells it too. If a user doesn't close a tag, we won't close a tag. If they close a tag without opening one we won't close it. If they include a paragraph tag inside a paragraph tag we'll still render it. All of these are invalid SSML, but don't trigger an error. This is meant to be that way as you can try anything with SSML, since polly doesn't fully follow the SSML v1.1 spec, now you can play around as much as you want.