SpeechSynthesisUtterance

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.)

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.)

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
actual constructor()
actual constructor(text: String)
expect constructor()
expect constructor(text: String)
actual constructor()
actual constructor(text: String)

Properties

Link copied to clipboard
actual var lang: String

Gets and sets the language of the utterance.

expect var lang: String

Gets and sets the language of the utterance.

actual var lang: String

Gets and sets the language of the utterance.

Link copied to clipboard
actual var onend: (event: JsAny?) -> Unit?
expect var onend: (event: JsAny?) -> Unit?
actual var onend: (event: JsAny?) -> Unit?
Link copied to clipboard
actual var onstart: (event: JsAny?) -> Unit?
expect var onstart: (event: JsAny?) -> Unit?
actual var onstart: (event: JsAny?) -> Unit?
Link copied to clipboard
actual var pitch: Float

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

expect var pitch: Float

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

actual var pitch: Float

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

Link copied to clipboard
actual var rate: Float

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

expect var rate: Float

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

actual var rate: Float

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

Link copied to clipboard
actual var text: String

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

expect var text: String

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

actual var text: String

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.

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

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

Link copied to clipboard
actual var volume: Float

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

expect var volume: Float

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

actual var volume: Float

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

Functions

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