SsmlRenderer

Renders an SsmlNode tree into a complete SSML XML string.

The output is wrapped in a <speak> root element as required by the Android TTS engine. All text content is XML-escaped to prevent injection of unintended markup.

This is an internal component — library consumers use com.github.kvnpetit.betterfrenchtts.BetterFrenchTts which calls the renderer automatically.

Functions

Link copied to clipboard
fun render(nodes: List<SsmlNode>): String

Renders a list of SsmlNode into a complete SSML document.