SpeechSynthesis

object SpeechSynthesis


Entry point to obtain a SpeechSynthesizer for text-to-speech operations.

Summary

Public functions

SpeechSynthesizer

Creates an instance of SpeechSynthesizer with the specified configuration options.

Public functions

getClient

fun getClient(options: SpeechSynthesizerOptions): SpeechSynthesizer

Creates an instance of SpeechSynthesizer with the specified configuration options.

One client is enough for an app that speaks several languages: options.locale is only a default, which SpeechSynthesizer.getSupportedVoices accepts an override for.

Parameters
options: SpeechSynthesizerOptions

The settings for text-to-speech.

Returns
SpeechSynthesizer

A new SpeechSynthesizer client.