IMovaStt class abstract

A port that turns a stream of decoded PCM audio into recognized subtitle cues.

One instance is scoped to a fixed set of languages it was built/loaded for (e.g. a bilingual Zipformer instance reports ['zh', 'en']) — this port does not itself decide which language an utterance is; multi-language routing (if ever added) is a decision made above this port, by selecting which recognizer instance to feed, not something an instance does internally.

把解码后的 PCM 音频流转成识别字幕的端口。

一个实例对应固定的 languages 集合(例如一个中英双语 Zipformer 实例会 报告 ['zh', 'en'])——本端口自己不做语种判断;多语言路由(如果未来要加) 是这个端口之上的决策,靠选择喂给哪个识别器实例来实现,不是某个实例内部 自己完成的事。

Implementers

Constructors

IMovaStt()

Properties

cues → Stream<MovaSttCue>
Recognized cues, emitted as they become available.
no setter
hashCode → int
The hash code for this object.
no setterinherited
languages → List<String>
Language codes this recognizer instance was loaded for (e.g. ['zh', 'en']).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Releases any resources held by this recognizer.
feed(Float32List samples, int sampleRateHz) → void
Feeds one chunk of mono PCM audio for recognition, continuing from wherever start's atPosition (plus prior feed calls) left off.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(Duration atPosition) → Future<void>
Starts (or resumes) recognition; must be called before feed.
stop() → Future<void>
Stops recognition; safe to call start again afterwards.
toString() → String
A string representation of this object.
inherited

Operators

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