SpeechSynthesisUtterance

external class SpeechSynthesisUtterance(text: String = definedExternally) : EventTarget(source)

The SpeechSynthesisUtterance interface of the Web Speech API represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)

Constructors

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

Properties

Link copied to clipboard

Gets and sets the language of the utterance.

Link copied to clipboard
var onend: (dynamic) -> Unit?
Link copied to clipboard
var onstart: (dynamic) -> Unit?
Link copied to clipboard

Gets and sets the pitch at which the utterance will be spoken at.

Link copied to clipboard
var rate: Float

Gets and sets the speed at which the utterance will be spoken at.

Link copied to clipboard

Gets and sets the text that will be synthesised when the utterance is spoken.

Link copied to clipboard

Gets and sets the voice that will be used to speak the utterance.

Link copied to clipboard

Gets and sets the volume that the utterance will be spoken at.

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic)
fun addEventListener(type: String, callback: EventListener?, options: dynamic)
Link copied to clipboard
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic)