Speech Preset
Named prosody preset with rate, pitch and volume settings for SSML <prosody> generation.
The library ships with 12 built-in presets accessible via the companion object. Custom presets can be created freely:
val robot = SpeechPreset("Robot", rate = "fast", pitch = "+6st", volume = "loud")
tts.speak("Bip boup", preset = robot)Content copied to clipboard