On this page
SpeechSynthesisUtterance class
- Inheritance
-
- Object
- EventTarget
- SpeechSynthesisUtterance
- Annotations
-
- @Native("SpeechSynthesisUtterance")
Constructors
- SpeechSynthesisUtterance([String? text])
factory
Properties
- hashCode → int
read-only, inherited
- The hash code for this object.
- lang ↔ String?
read / write
- on → Events
read-only, inherited
- This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- onBoundary → Stream<
SpeechSynthesisEvent> read-only -
Stream of
boundaryevents handled by this SpeechSynthesisUtterance. - onEnd → Stream<
SpeechSynthesisEvent> read-only -
Stream of
endevents handled by this SpeechSynthesisUtterance. - onError → Stream<
Event> read-only -
Stream of
errorevents handled by this SpeechSynthesisUtterance. - onMark → Stream<
SpeechSynthesisEvent> read-only -
Stream of
markevents handled by this SpeechSynthesisUtterance. - onPause → Stream<
Event> read-only -
Stream of
pauseevents handled by this SpeechSynthesisUtterance. - onResume → Stream<
SpeechSynthesisEvent> read-only -
Stream of
resumeevents handled by this SpeechSynthesisUtterance. - onStart → Stream<
SpeechSynthesisEvent> read-only -
Stream of
startevents handled by this SpeechSynthesisUtterance. - pitch ↔ num?
read / write
- rate ↔ num?
read / write
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
- text ↔ String?
read / write
- voice ↔ SpeechSynthesisVoice?
read / write
- volume ↔ num?
read / write
Methods
- addEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - dispatchEvent(
Event event) → bool inherited - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed.
- removeEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - toString(
) → String inherited - A string representation of this object.
Operators
- operator ==(
Object other) → bool inherited - The equality operator.
Constants
- boundaryEvent → const EventStreamProvider<
SpeechSynthesisEvent> -
Static factory designed to expose
boundaryevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<SpeechSynthesisEvent>('boundary') - endEvent → const EventStreamProvider<
SpeechSynthesisEvent> -
Static factory designed to expose
endevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<SpeechSynthesisEvent>('end') - errorEvent → const EventStreamProvider<
Event> -
Static factory designed to expose
errorevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<Event>('error') - markEvent → const EventStreamProvider<
SpeechSynthesisEvent> -
Static factory designed to expose
markevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<SpeechSynthesisEvent>('mark') - pauseEvent → const EventStreamProvider<
Event> -
Static factory designed to expose
pauseevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<Event>('pause') - resumeEvent → const EventStreamProvider<
SpeechSynthesisEvent> -
Static factory designed to expose
resumeevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<SpeechSynthesisEvent>('resume') - startEvent → const EventStreamProvider<
SpeechSynthesisEvent> -
Static factory designed to expose
startevents to event handlers that are not necessarily instances of SpeechSynthesisUtterance.const EventStreamProvider<SpeechSynthesisEvent>('start')
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/SpeechSynthesisUtterance-class.html