KokoroEngine class final
Kokoro synthesis on one worker: native isolate or web Worker.
It runs one request at a time. begin phonemizes the text, and each next decodes one span.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
begin(
String text, String name, double speed, bool normalize) → Future< void> -
cancel(
) → void -
close(
) → Future< void> -
next(
) → Future< KokoroEngineChunk?> - The next span of the current request, or null after the last.
-
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
Static Methods
-
load(
KokoroBundle bundle, KokoroChunkPolicy policy, KokoroStages stages, KokoroReader read) → Future< KokoroEngine> -
Loads the phonemizer data of
bundle.stagesholds the sessions; the engine closes them.