SpeechSynthesis class

The interface of the Web Speech API is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.

EventTarget

SpeechSynthesis

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

SpeechSynthesis()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onvoiceschanged EventHandlerNonNull<Event>?

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

getter/setter pair
paused bool

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

no setter
pending bool

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speaking bool

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

no setter

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

cancel() → void

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

getVoices() Iterable<SpeechSynthesisVoice>

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

resume() → void

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

speak(SpeechSynthesisUtterance utterance) → void

Available on SpeechSynthesis, provided by the PropsSpeechSynthesis extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited