SpeechSynthesis

public static class SpeechSynthesis


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

Summary

Public fields

static @NonNull SpeechSynthesis

Public methods

static final @NonNull SpeechSynthesizer

Creates an instance of SpeechSynthesizer with the specified configuration options.

Public fields

INSTANCE

public static @NonNull SpeechSynthesis INSTANCE

Public methods

getClient

public static final @NonNull SpeechSynthesizer getClient(@NonNull SpeechSynthesizerOptions options)

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
@NonNull SpeechSynthesizerOptions options

The settings for text-to-speech.