Lfm3LiveTranscriber class final

Mono 16 kHz PCM to incremental English text. The encoder follows one stream; language decoding happens after every 96 mel frames (about 0.96 seconds). Owns only per-recording states; the caller owns the model and encoder.

Properties

contexts → int
no setter
encodedAudioTokens → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
onBlock → void Function(AudioLiveBlock)?
final
onText → void Function(String)?
final
pendingFeatureFrames → int
no setter
receivedSamples → int
no setter
retainedTextTokens → int
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
no setter

Methods

addPcm(Float32List pcm) → Future<void>
close() → void
finish() → Future<String>
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

Static Methods

start(Lfm3Model model, Lfm3Tokenizer tokenizer, Lfm3AudioEncoder encoder, {void onText(String)?, void onBlock(AudioLiveBlock)?, int maxContextAudioTokens = 375}) → Future<Lfm3LiveTranscriber>