speakSsml

fun speakSsml(ssml: String, queueMode: Int = TextToSpeech.QUEUE_FLUSH): SpeechResult

Speaks raw SSML directly, bypassing the DSL and preset system.

The ssml string should be a complete SSML document (with <speak> root) or a fragment that the TTS engine can interpret.

Return

SpeechResult indicating success or failure.

Parameters

ssml

Raw SSML markup to speak.