withPreset

fun withPreset(preset: SpeechPreset, block: SpeechBuilder.() -> Unit)

Applies a SpeechPreset's prosody (rate, pitch, volume) to the enclosed content.

Parameters

preset

The preset whose values are used for the <prosody> tag.

block

DSL block for the content affected by this preset.