prosody

fun prosody(rate: String? = null, pitch: String? = null, volume: String? = null, block: SpeechBuilder.() -> Unit)

Wraps content in an SSML <prosody> tag with optional rate, pitch, and volume.

Parameters

rate

Speech rate: "x-slow", "slow", "medium", "fast", "x-fast", or a percentage.

pitch

Pitch shift in semitones (e.g. "+2st", "-1st").

volume

Volume level: "x-soft", "soft", "medium", "loud", "x-loud".

block

DSL block for the content affected by this prosody.