BackendTextToSpeechCapabilities class

Runtime capabilities for an optional backend text-to-speech path.

Constructors

BackendTextToSpeechCapabilities({required bool isSupported, String? unsupportedReason, BackendTextToSpeechModel? model, int? sampleRateHz, int? channelCount, bool supportsLanguage = false, bool supportsSpeakerReference = false, bool supportsCancellation = false})
Creates a backend capability snapshot.
const

Properties

channelCount → int?
Number of interleaved output channels.
final
hashCode → int
The hash code for this object.
no setterinherited
isSupported → bool
Whether synthesis is available for the loaded model and projector.
final
model → BackendTextToSpeechModel?
Model family recognized by the backend.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleRateHz → int?
Output sample rate in Hertz.
final
supportsCancellation → bool
Whether an active synthesis can be cancelled cooperatively.
final
supportsLanguage → bool
Whether a language hint can be supplied.
final
supportsSpeakerReference → bool
Whether encoded reference-speaker audio can be supplied.
final
unsupportedReason → String?
Actionable reason when isSupported is false.
final

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