enqueue
Adds a text item to the speech queue.
Items are not played until playQueue is called. Multiple items can be enqueued before starting playback.
tts.enqueue("Bienvenue.")
tts.enqueue("Voici les nouvelles.", preset = SpeechPreset.NEWS)
tts.playQueue()Content copied to clipboard
Return
This instance for chaining.
Parameters
text
The French text to speak.
preset
Prosody preset for this item. Defaults to Config.defaultPreset.
See also
Adds a DSL-built speech item to the queue.
tts.enqueue {
slow { text("Point important.") }
pause(300)
emphasis { text("Très important !") }
}Content copied to clipboard
Return
This instance for chaining.
Parameters
block
DSL block executed on a SpeechBuilder receiver.