SpeakAction class final
Reads text aloud, or stops speaking. rate and pitch are numbers or expressions.
With readAlong the words are timed for a read-along highlight
(speech.wordIndex): the text is said a phrase at a time, each word gets
time by its syllables from the moment its phrase starts sounding, and the
voice's word boundaries (when it reports them) snap the highlight to the
real word and set the pace; without a voice the words are read along
silently at that pace. It starts at startWord and the action waits until
the text has been said (its result: {completed: bool}).
- Inheritance
-
- Object
- ActionDef
- MediaAction
- SpeakAction
Constructors
Properties
- enabled → bool
-
False skips the action.
finalinherited
- fieldsJson → Json
-
Its own fields, as JSON (sparse): what toJson writes besides
typeand the common fields. An action class outside this library overrides this.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
final
-
nested
→ List<
ActionDef> -
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
- nonBlocking → bool
-
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
- pitch → String
-
final
- rate → String
-
final
- readAlong → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfAndNested
→ Iterable<
ActionDef> -
This action, then every action nested in it, depth first.
no setterinherited
- startWord → String
-
final
- stop → bool
-
final
- text → String
-
final
- type → String
-
The JSON
type.no setteroverride - when → Predicate?
-
Runs only when it holds; null: always.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited