SttBackendProvider class abstract
A pluggable STT backend (LiteRT C API, or a third-party backend). Same probe-chain shape as EmbeddingBackendProvider/InferenceEngineProvider: selected by probing the STT model spec, highest-priority first match.
Passed to FlutterGemma.initialize via sttBackends:.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Human-readable name for diagnostics / error messages.
no setter
- priority → int
-
Selection precedence on overlap. Core backends use 0.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canHandle(
SttModelSpec spec) → bool -
Whether this backend can serve
spec. Probed by the registry. -
createModel(
SttModelSpec spec, RuntimeConfig config) → Future< SpeechRecognizer> -
Build a runtime SpeechRecognizer for
spec+config. -
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