Dart SDK
dart:html
SpeechSynthesisUtterance
class
SpeechSynthesisUtterance
Constants
Properties
Constructors
Constants
boundaryEvent
endEvent
errorEvent
markEvent
pauseEvent
resumeEvent
startEvent
Properties
lang
pitch
rate
text
voice
volume
onBoundary
onEnd
onError
onMark
onPause
onResume
onStart
on
Constructors
SpeechSynthesisUtterance
Methods
addEventListener
removeEventListener
dispatchEvent
(Not documented.)
Annotations
DocsEditable()
DomName('SpeechSynthesisUtterance')
Experimental()
Extends
Object
EventTarget
SpeechSynthesisUtterance
Constants
EventStreamProvider
<
SpeechSynthesisEvent
>
boundaryEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('boundary')
const
Static factory designed to expose boundary events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
EventStreamProvider
<
SpeechSynthesisEvent
>
endEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('end')
const
Static factory designed to expose end events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
EventStreamProvider
<
Event
>
errorEvent
=
const
EventStreamProvider
<
Event
>
('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
EventStreamProvider
<
SpeechSynthesisEvent
>
markEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('mark')
const
Static factory designed to expose mark events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
EventStreamProvider
<
Event
>
pauseEvent
=
const
EventStreamProvider
<
Event
>
('pause')
const
Static factory designed to expose pause events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
EventStreamProvider
<
SpeechSynthesisEvent
>
resumeEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('resume')
const
Static factory designed to expose resume events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
EventStreamProvider
<
SpeechSynthesisEvent
>
startEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('start')
const
Static factory designed to expose start events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
Properties
String
lang
read / write
num
pitch
read / write
num
rate
read / write
String
text
read / write
SpeechSynthesisVoice
voice
read / write
num
volume
read / write
Stream
<
SpeechSynthesisEvent
>
onBoundary
read-only
Stream of boundary events handled by this [SpeechSynthesisUtterance].
Stream
<
SpeechSynthesisEvent
>
onEnd
read-only
Stream of end events handled by this [SpeechSynthesisUtterance].
Stream
<
Event
>
onError
read-only
Stream of error events handled by this [SpeechSynthesisUtterance].
Stream
<
SpeechSynthesisEvent
>
onMark
read-only
Stream of mark events handled by this [SpeechSynthesisUtterance].
Stream
<
Event
>
onPause
read-only
Stream of pause events handled by this [SpeechSynthesisUtterance].
Stream
<
SpeechSynthesisEvent
>
onResume
read-only
Stream of resume events handled by this [SpeechSynthesisUtterance].
Stream
<
SpeechSynthesisEvent
>
onStart
read-only
Stream of start events handled by this [SpeechSynthesisUtterance].
Events
on
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.
Constructors
SpeechSynthesisUtterance
([
String
text
])
Methods
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited