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.)

MDN Reference

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<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

Overload accessor: $1, $2
no 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 Reference
getter/setter pair
onboundary ↔ dynamic Function(SpeechSynthesisEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
onend ↔ dynamic Function(SpeechSynthesisEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
onerror ↔ dynamic Function(SpeechSynthesisErrorEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
onmark ↔ dynamic Function(SpeechSynthesisEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
onpause ↔ dynamic Function(SpeechSynthesisEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
onresume ↔ dynamic Function(SpeechSynthesisEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
onstart ↔ dynamic Function(SpeechSynthesisEvent)?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
pitch num

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
rate num

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/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<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

Overload accessor: $1, $2
no 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 Reference
getter/setter pair
voice SpeechSynthesisVoice?

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/setter pair
volume num

Available on SpeechSynthesisUtterance, provided by the SpeechSynthesisUtterance$Typings extension

MDN Reference
getter/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