SpeechSynthesisUtterance

open class SpeechSynthesisUtterance(var text: String = definedExternally) : EventTarget(source)

The SpeechSynthesisUtterance interface of the Web Speech API represents a speech request.

MDN Reference

Constructors

Link copied to clipboard
constructor(text: String = definedExternally)

Properties

Link copied to clipboard

The lang property of the SpeechSynthesisUtterance interface gets and sets the language of the utterance.

Link copied to clipboard

The pitch property of the SpeechSynthesisUtterance interface gets and sets the pitch at which the utterance will be spoken at.

Link copied to clipboard
var rate: Float

The rate property of the SpeechSynthesisUtterance interface gets and sets the speed at which the utterance will be spoken at.

Link copied to clipboard

The text property of the The text may be provided as plain text, or a well-formed SSML document.

Link copied to clipboard

The voice property of the SpeechSynthesisUtterance interface gets and sets the voice that will be used to speak the utterance.

Link copied to clipboard

The volume property of the SpeechSynthesisUtterance interface gets and sets the volume that the utterance will be spoken at.

Functions

Link copied to clipboard
Link copied to clipboard