setVoice

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
fun setVoice(voice: Voice): Result<Unit, TextToSpeechEngineError>

Sets the text to speech voice. Use getVoices to retrieve a collection of available voices.

Parameters

voice

The Voice to be set for text to speech.