@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public class SpeechSynthesis
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
@JsNullable EventHandler |
onvoiceschanged
The onvoiceschanged property of the SpeechSynthesis interface represents an event handler that will run when the list of SpeechSynthesisVoice objects that would be returned by the SpeechSynthesis.getVoices() method has changed (when the voiceschanged event fires.)
|
| Modifier | Constructor and Description |
|---|---|
protected |
SpeechSynthesis() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVoiceschangedListener(EventListener callback) |
void |
addVoiceschangedListener(EventListener callback,
AddEventListenerOptions options) |
void |
addVoiceschangedListener(EventListener callback,
boolean useCapture) |
void |
cancel()
The cancel() method of the SpeechSynthesis interface removes all utterances from the utterance queue.
|
@JsNonNull JsArray<SpeechSynthesisVoice> |
getVoices()
The getVoices() method of the SpeechSynthesis interface returns a list of SpeechSynthesisVoice objects representing all the available voices on the current device.
|
void |
pause()
The pause() method of the SpeechSynthesis interface puts the SpeechSynthesis object into a paused state.
|
boolean |
paused()
The paused read-only property of the SpeechSynthesis interface is a Boolean that returns true if the SpeechSynthesis object is in a paused state, or false if not.
|
boolean |
pending()
The pending read-only property of the SpeechSynthesis interface is a Boolean that returns true if the utterance queue contains as-yet-unspoken utterances.
|
void |
removeVoiceschangedListener(EventListener callback) |
void |
removeVoiceschangedListener(EventListener callback,
boolean useCapture) |
void |
removeVoiceschangedListener(EventListener callback,
EventListenerOptions options) |
void |
resume()
The resume() method of the SpeechSynthesis interface puts the SpeechSynthesis object into a non-paused state: resumes it if it was already paused.
|
void |
speak(SpeechSynthesisUtterance utterance)
The speak() method of the SpeechSynthesis interface adds an utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
|
boolean |
speaking()
The speaking read-only property of the SpeechSynthesis interface is a Boolean that returns true if an utterance is currently in the process of being spoken — even if SpeechSynthesis is in a paused state.
|
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 @JsNullable EventHandler onvoiceschanged
@JsProperty(name="paused") public boolean paused()
@JsProperty(name="pending") public boolean pending()
@JsProperty(name="speaking") public boolean speaking()
public void cancel()
public @JsNonNull JsArray<SpeechSynthesisVoice> getVoices()
public void pause()
public void resume()
public void speak(@Nonnull
SpeechSynthesisUtterance utterance)
@JsOverlay
public final void addVoiceschangedListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addVoiceschangedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addVoiceschangedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeVoiceschangedListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeVoiceschangedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeVoiceschangedListener(@Nonnull
EventListener callback)