SpeechVoice

data class SpeechVoice(val id: String, val name: String, val languageTag: String, val quality: SpeechVoice.Quality, val requiresNetwork: Boolean)

A text-to-speech voice available on the device.

Constructors

Link copied to clipboard
constructor(id: String, name: String, languageTag: String, quality: SpeechVoice.Quality, requiresNetwork: Boolean)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

How natural a voice sounds, lowest to highest.

Properties

Link copied to clipboard
val id: String

The system voice identifier (the android.speech.tts.Voice name).

Link copied to clipboard

The BCP 47 language tag, such as en-US.

Link copied to clipboard

The voice's display name.

Link copied to clipboard

The voice's quality tier.

Link copied to clipboard

Whether the voice needs a network connection to speak.