SttModelSpec class
Specification for STT models (model.tflite + tokenizer.json).
Model is SELECTABLE like inference models: sttModelType is carried on the spec (mirrors InferenceModelSpec.modelType) so a single generic backend can dispatch to the right runtime profile instead of hardcoding one model.
Constructors
- SttModelSpec({required String name, required ModelSource modelSource, required ModelSource tokenizerSource, required SttModelType sttModelType, ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})
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
- modelSource → ModelSource
-
Modern type-safe getters
no setter
- 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
- sttModelType → SttModelType
-
no setter
- tokenizerSource → ModelSource
-
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