TtsBackendProvider class abstract

A pluggable TTS backend (LiteRT C API, or a third-party backend). Same probe-chain shape as EmbeddingBackendProvider/InferenceEngineProvider: selected by probing the TTS model spec, highest-priority first match.

Passed to FlutterGemma.initialize via ttsBackends:.

Constructors

TtsBackendProvider()

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(TtsModelSpec spec) bool
Whether this backend can serve spec. Probed by the registry.
createModel(TtsModelSpec spec, RuntimeConfig config) Future<SpeechSynthesizer>
Build a runtime SpeechSynthesizer 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