VoiceInfo

class VoiceInfo


Represents information about a supported text-to-speech voice.

Instances are created by the SDK and returned from SpeechSynthesizer.getSupportedVoices.

Summary

Nested types

The gender of a voice.

Public properties

VoiceInfo.Gender

The gender of the voice.

Locale

The concrete locale of the voice, which may be more specific than the one it was looked up with.

String

The unique name of the voice.

Public properties

gender

val gender: VoiceInfo.Gender

The gender of the voice.

locale

val locale: Locale

The concrete locale of the voice, which may be more specific than the one it was looked up with. SpeechSynthesizer.checkStatus, SpeechSynthesizer.download, and the language fallback in SpeechSynthesizer.synthesize all key off this rather than the locale configured in SpeechSynthesizerOptions.

name

val name: String

The unique name of the voice.