setVoice

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.

Important: This is a Public Preview API. It may be changed or removed at any time.