@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="SpeechSynthesisUtterance")
public class SpeechSynthesisUtterance
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
lang
The lang property of the SpeechSynthesisUtterance interface gets and sets the language of the utterance.
|
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.)
|
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.)
|
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.)
|
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.)
|
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.)
|
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.)
|
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.
|
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.
|
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_, values@Nonnull public java.lang.String lang
@Nullable public SpeechSynthesisEventHandler onboundary
@Nullable public SpeechSynthesisEventHandler onend
@Nullable public SpeechSynthesisErrorEventHandler onerror
@Nullable public SpeechSynthesisEventHandler onmark
@Nullable public SpeechSynthesisEventHandler onpause
@Nullable public SpeechSynthesisEventHandler onresume
@Nullable public SpeechSynthesisEventHandler onstart
public float pitch
public float rate
@Nonnull public java.lang.String text
@Nullable public 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)