SpeechSynthesisUtterance class
This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- SpeechSynthesisUtterance([String? text])
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$ extends Event>(SpeechSynthesisUtteranceEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
Overload accessor: $1, $2no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- lang ↔ String
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onboundary ↔ dynamic Function(SpeechSynthesisEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onend ↔ dynamic Function(SpeechSynthesisEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onerror ↔ dynamic Function(SpeechSynthesisErrorEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onmark ↔ dynamic Function(SpeechSynthesisEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onpause ↔ dynamic Function(SpeechSynthesisEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onresume ↔ dynamic Function(SpeechSynthesisEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - onstart ↔ dynamic Function(SpeechSynthesisEvent)?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - pitch ↔ num
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - rate ↔ num
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$ extends Event>(SpeechSynthesisUtteranceEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - voice ↔ SpeechSynthesisVoice?
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair - volume ↔ num
-
Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension
MDN Referencegetter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited