VadStream class

Live VAD stream: push frames, then flush/finish/close.

Constructors

VadStream({required Stream<VadEvent> events, required void pushHandler(AudioFrame frame), required void flushHandler(), required void finishHandler(), required Future<void> closeHandler()})
Internal — build through vad.openStream.

Properties

events Stream<VadEvent>
Speech-activity transitions. Ends in VadCompleted or VadFailed.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Release the stream. Idempotent.
finish() → void
Signal end of input.
flush() → void
No-op: every pushed frame is processed as it arrives.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushFrame(AudioFrame frame) → void
Push one PCM frame in the stream's established format.
toString() String
A string representation of this object.
inherited

Operators

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