W3cubDocs

/Haxe JavaScript

SpeechSynthesisEvent

package js.html

extends Event

extended by SpeechSynthesisErrorEvent

Available on js

The SpeechSynthesisEvent interface of the Web Speech API contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.

Documentation SpeechSynthesisEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new(type:String, eventInitDict:SpeechSynthesisEventInit)

Throws:

null

DOMError

Variables

read onlycharIndex:Int

Returns the index position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered.

read onlycharLength:Int

read onlyelapsedTime:Float

Returns the elapsed time in milliseconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at.

read onlyname:String

Returns the name associated with certain types of events occuring as the SpeechSynthesisUtterance.text is being spoken: the name of the SSML marker reached in the case of a mark event, or the type of boundary reached in the case of a boundary event.

read onlyutterance:SpeechSynthesisUtterance

Returns the SpeechSynthesisUtterance instance that the event was triggered on.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SpeechSynthesisEvent.html