AudioSynthesizer class final

Caller-owned model/generator, used exclusively during a synthesis operation. CPU generation/codec work is synchronous per frame: use a worker isolate.

Constructors

AudioSynthesizer(Lfm3Model model, Lfm3Tokenizer tokenizer, Lfm3AudioGenerator generator)

Properties

generator → Lfm3AudioGenerator
final
hashCode → int
The hash code for this object.
no setterinherited
model → Lfm3Model
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenizer → Lfm3Tokenizer
final

Methods

cancel() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
synthesize(String text, {String language = 'en', String voice = 'female', int maxFrames = 375, int seed = 0, double? temperature, int? topK, double? repetitionPenalty, void onAudio(Float32List samples)?, void onCodes(List<int> codes)?}) → Future<AudioSynthesisResult>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited