TtsModelSpec class

Specification for a TTS model — a SELECTABLE bundle. ttsModelType carries the model family so one generic backend dispatches to the right runtime profile; sources is one entry per file in that type's manifest.

Inheritance

Constructors

TtsModelSpec({required String name, required List<ModelSource> sources, required TtsModelType ttsModelType, ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})
TtsModelSpec.fromManifest({required String name, required TtsModelType ttsModelType, required ModelSource sourceFor(String filename), ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})
Builds a spec from the type's TtsModelTypeManifest.manifest, turning each filename into a source via sourceFor (network URL for install, local file path for restore).
factory

Properties

files → List<ModelFile>
All files that belong to this model
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
isValid → bool
Whether this model specification is valid
no setterinherited
name → String
Human-readable name for this model
no setteroverride
replacePolicy → ModelReplacePolicy
Policy for replacing old models
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources → List<ModelSource>
no setter
ttsModelType → TtsModelType
no setter
type → ModelManagementType
Type of this model
no setteroverride

Methods

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.
override