Properties

This section describes the properties associated with the Web Speech API.

In this section

TopicDescription

charLength

Describes the length of the text, word or sentence, that will be spoken.

default

Returns true or false indicating if this voice is the default voice.

elapsedTime

Returns the time (in seconds) when the event was triggered, relative to when the utterance began speaking.

lang

Specifies the language of the speech synthesis for the utterance.

lang (SpeechSynthesisVoice)

Returns the BCP 47 language tag indicating the language of the voice.

localService

Returns true or false indicating if the voices are supplied by a local or a remote speech synthesizer.

paused

Indicates if the SpeechSynthesis object is in the paused state.

pitch

The speaking pitch for the utterance.

pending

Indicates whether or not the queue for the global SpeechSynthesis object contains utterances which have not started speaking.

rate

The speaking rate for the utterance, relative to the default rate for the voice.

speaking

Indicates if an utterance is being spoken.

text

Specifies the text to be synthesized and spoken.

utterance

Returns the SpeechSynthesisUtterance object that triggered the event.

voice

Specifies the speech synthesis voice to be used.

volume

The speaking volume for the utterance.

voiceURI

Returns a URI which specifies the speech synthesis voice and the location of the speech synthesis service for this voice.

 

 

 

Show: