@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="SpeechSynthesisUtterance")
public class SpeechSynthesisUtterance
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
@JsNonNull java.lang.String |
lang
The lang property of the SpeechSynthesisUtterance interface gets and sets the language of the utterance.
|
@JsNullable SpeechSynthesisEventHandler |
onboundary
The onboundary property of the SpeechSynthesisUtterance interface represents an event handler that will run when the spoken utterance reaches a word or sentence boundary (when the boundary event fires.)
|
@JsNullable SpeechSynthesisEventHandler |
onend
The onend property of the SpeechSynthesisUtterance interface represents an event handler that will run when the utterance has finished being spoken (when the end event fires.)
|
@JsNullable SpeechSynthesisErrorEventHandler |
onerror
The onerror property of the SpeechSynthesisUtterance interface represents an event handler that will run when an error occurs that prevents the utterance from being succesfully spoken (when the error event fires.)
|
@JsNullable SpeechSynthesisEventHandler |
onmark
The onmark property of the SpeechSynthesisUtterance interface represents an event handler that will run when the spoken utterance reaches a named SSML mark tag (when the mark event fires.)
|
@JsNullable SpeechSynthesisEventHandler |
onpause
The onpause property of the SpeechSynthesisUtterance interface represents an event handler that will run when the utterance is paused part way through (when the pause event fires.)
|
@JsNullable SpeechSynthesisEventHandler |
onresume
The onresume property of the SpeechSynthesisUtterance interface represents an event handler that will run when a paused utterance is resumed (when the resume event fires.)
|
@JsNullable SpeechSynthesisEventHandler |
onstart
The onstart property of the SpeechSynthesisUtterance interface represents an event handler that will run when the utterance has begun to be spoken (when the start event fires.)
|
float |
pitch
The pitch property of the SpeechSynthesisUtterance interface gets and sets the pitch at which the utterance will be spoken at.
|
float |
rate
The rate property of the SpeechSynthesisUtterance interface gets and sets the speed at which the utterance will be spoken at.
|
@JsNonNull java.lang.String |
text
The text property of the SpeechSynthesisUtterance interface gets and sets the text that will be synthesised when the utterance is spoken.
|
@JsNullable SpeechSynthesisVoice |
voice
The voice property of the SpeechSynthesisUtterance interface gets and sets the voice that will be used to speak the utterance.
|
float |
volume
The volume property of the SpeechSynthesisUtterance interface gets and sets the volume that the utterance will be spoken at.
|
| Constructor and Description |
|---|
SpeechSynthesisUtterance()
The SpeechSynthesisUtterance() constructor of the SpeechSynthesisUtterance interface returns a new SpeechSynthesisUtterance object instance.
|
SpeechSynthesisUtterance(java.lang.String text)
The SpeechSynthesisUtterance() constructor of the SpeechSynthesisUtterance interface returns a new SpeechSynthesisUtterance object instance.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNonNull java.lang.String lang
public @JsNullable SpeechSynthesisEventHandler onboundary
public @JsNullable SpeechSynthesisEventHandler onend
public @JsNullable SpeechSynthesisErrorEventHandler onerror
public @JsNullable SpeechSynthesisEventHandler onmark
public @JsNullable SpeechSynthesisEventHandler onpause
public @JsNullable SpeechSynthesisEventHandler onresume
public @JsNullable SpeechSynthesisEventHandler onstart
public float pitch
public float rate
public @JsNonNull java.lang.String text
public @JsNullable SpeechSynthesisVoice voice
public float volume
public SpeechSynthesisUtterance(@Nonnull
java.lang.String text)
public SpeechSynthesisUtterance()
@JsOverlay
public final void addBoundaryListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addBoundaryListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void addBoundaryListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void removeBoundaryListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeBoundaryListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeBoundaryListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void addEndListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addEndListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void addEndListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void removeEndListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeEndListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeEndListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void addErrorListener(@Nonnull
SpeechSynthesisErrorEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addErrorListener(@Nonnull
SpeechSynthesisErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void addErrorListener(@Nonnull
SpeechSynthesisErrorEventListener callback)
@JsOverlay
public final void removeErrorListener(@Nonnull
SpeechSynthesisErrorEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeErrorListener(@Nonnull
SpeechSynthesisErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeErrorListener(@Nonnull
SpeechSynthesisErrorEventListener callback)
@JsOverlay
public final void addMarkListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addMarkListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void addMarkListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void removeMarkListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeMarkListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeMarkListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void addPauseListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addPauseListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void addPauseListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void removePauseListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removePauseListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void removePauseListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void addResumeListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addResumeListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void addResumeListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void removeResumeListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeResumeListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeResumeListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void addStartListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addStartListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void addStartListener(@Nonnull
SpeechSynthesisEventListener callback)
@JsOverlay
public final void removeStartListener(@Nonnull
SpeechSynthesisEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeStartListener(@Nonnull
SpeechSynthesisEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeStartListener(@Nonnull
SpeechSynthesisEventListener callback)