Skip to main content

Module transcript

Module transcript 

Source
Expand description

Transcript accumulation, stable-prefix tracking, and speculation gating.

Gemini Live emits input transcription independently of turn boundaries and revises partial results as recognition improves. Two consequences shape this module:

  1. Partial transcripts are hypotheses. They may prefetch context; they may never become evidence. Only is_final output is admissible.
  2. Ordering cannot be assumed. Turn identity is assigned locally from VAD and turn-complete events, and every asynchronous task carries the generation it was started for, so a late result cannot overwrite a newer one.

Structs§

GenerationGuard
The generation counter that makes stale asynchronous work harmless.
SpeculationGate
Decides whether a partial transcript revision is worth speculating on.
TranscriptAccumulator
Accumulates transcript revisions for one turn.
TranscriptHypothesis
The current reading of an in-progress utterance.

Enums§

SpeculationDecision
Why the gate did or did not fire.