SttStream class
Live transcription stream: push frames, then flush/finish/close.
Constructors
-
SttStream({required Stream<
TranscriptionEvent> events, required void pushHandler(AudioFrame frame), required void flushHandler(), required void finishHandler(), required Future<void> closeHandler()}) -
Internal — build through
stt.openStream.
Properties
-
events
→ Stream<
TranscriptionEvent> -
Transcription progress. Ends in
TranscriptionFinal/completed,TranscriptionFailed, orTranscriptionCancelled— never fabricated.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; the session settles its final transcript.
-
flush(
) → void - Request the native session flush any buffered partial. A no-op where the backend has no incremental buffer to flush.
-
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