TranscriptionSession class

A live streaming-transcription session (RFC-0028): push audio chunks with pushAudio, mark end-of-audio with inputDone, then pull transcription parts (JSON TranscriptionStreamParts) with nextPart.

Call close to terminate (aborts the driver; idempotent).

Properties

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() → void
Terminate and release the session (aborts the driver; idempotent).
inputDone() → void
Signal end-of-audio (idempotent).
nextPart(int timeoutMs) String
Pull the next transcription part (JSON string).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushAudio(Uint8List audio) → void
Push one binary audio chunk. Blocks while the internal channel is full (backpressure propagation).
toString() String
A string representation of this object.
inherited

Operators

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