Dart API Reference
dart:html
SpeechSynthesisUtterance
SpeechSynthesisUtterance
class
Annotations
DocsEditable()
DomName('SpeechSynthesisUtterance')
Experimental()
Extends
Object
EventTarget
SpeechSynthesisUtterance
Constructors
SpeechSynthesisUtterance
([
String
text
])
Constants
boundaryEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('boundary')
Static factory designed to expose boundary events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
endEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('end')
Static factory designed to expose end events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
errorEvent
=
const
EventStreamProvider
<
Event
>
('error')
Static factory designed to expose error events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
markEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('mark')
Static factory designed to expose mark events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
pauseEvent
=
const
EventStreamProvider
<
Event
>
('pause')
Static factory designed to expose pause events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
resumeEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('resume')
Static factory designed to expose resume events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
startEvent
=
const
EventStreamProvider
<
SpeechSynthesisEvent
>
('start')
Static factory designed to expose start events to event handlers that are not necessarily instances of
SpeechSynthesisUtterance
.
Instance Properties
lang
String
read / write
pitch
num
read / write
rate
num
read / write
text
String
read / write
voice
SpeechSynthesisVoice
read / write
volume
num
read / write
onBoundary
Stream
<
SpeechSynthesisEvent
>
read-only
onEnd
Stream
<
SpeechSynthesisEvent
>
read-only
onError
Stream
<
Event
>
read-only
onMark
Stream
<
SpeechSynthesisEvent
>
read-only
onPause
Stream
<
Event
>
read-only
onResume
Stream
<
SpeechSynthesisEvent
>
read-only
onStart
Stream
<
SpeechSynthesisEvent
>
read-only
on
Events
Inherited
read-only
Instance 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