@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="SpeechSynthesisEvent")
public class SpeechSynthesisEvent
extends Event
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
SpeechSynthesisEvent(java.lang.String type,
SpeechSynthesisEventInit eventInitDict) |
| Modifier and Type | Method and Description |
|---|---|
int |
charIndex()
The charIndex read-only property of the SpeechSynthesisUtterance interface returns the index position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered.
|
int |
charLength() |
float |
elapsedTime()
The elapsedTime read-only property of the SpeechSynthesisUtterance interface returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at.
|
java.lang.String |
name()
The name read-only property of the SpeechSynthesisUtterance interface 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.
|
SpeechSynthesisUtterance |
utterance()
The utterance read-only property of the SpeechSynthesisUtterance interface returns the SpeechSynthesisUtterance instance that the event was triggered on.
|
bubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typepublic SpeechSynthesisEvent(@Nonnull
java.lang.String type,
@Nonnull
SpeechSynthesisEventInit eventInitDict)
@JsProperty(name="charIndex") public int charIndex()
@JsProperty(name="charLength") public int charLength()
@JsProperty(name="elapsedTime") public float elapsedTime()
@JsProperty(name="name") @Nonnull public java.lang.String name()
@JsProperty(name="utterance") @Nonnull public SpeechSynthesisUtterance utterance()