build Ssml
Returns the SSML that would be generated by the DSL block, without speaking it.
Useful for debugging or logging the generated SSML markup.
Return
The generated SSML string (e.g. <speak><prosody ...>...</prosody></speak>).
Parameters
block
DSL block executed on a SpeechBuilder receiver.
Returns the SSML that would be generated for text with the given preset, without speaking it.
Return
The generated SSML string.
Parameters
text
The French text to wrap in SSML prosody.
preset
Prosody preset to apply. Defaults to Config.defaultPreset.