setVoice

fun setVoice(voice: Voice)

Manually sets the active TTS voice.

Parameters

voice

A Voice object, typically obtained from listAvailableVoices.