SpeechSynthesisVoice

The SpeechSynthesisVoice interface of the Web Speech API represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.

MDN Reference

Properties

Link copied to clipboard
open external val default: Boolean

The default read-only property of the SpeechSynthesisVoice interface returns a boolean value indicating whether the voice is the default voice for the current app (true), or not (false.)

Link copied to clipboard
open external val lang: String

The lang read-only property of the SpeechSynthesisVoice interface returns a BCP 47 language tag indicating the language of the voice.

Link copied to clipboard
open external val localService: Boolean

The localService read-only property of the SpeechSynthesisVoice interface returns a boolean value indicating whether the voice is supplied by a local speech synthesizer service (true), or a remote speech synthesizer service (false.)

Link copied to clipboard
open external val name: String

The name read-only property of the SpeechSynthesisVoice interface returns a human-readable name that represents the voice.

Link copied to clipboard
open external val voiceURI: String

The voiceURI read-only property of the SpeechSynthesisVoice interface returns the type of URI and location of the speech synthesis service for this voice.