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:
- Partial transcripts are hypotheses. They may prefetch context; they
may never become evidence. Only
is_finaloutput is admissible. - 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§
- Generation
Guard - The generation counter that makes stale asynchronous work harmless.
- Speculation
Gate - Decides whether a partial transcript revision is worth speculating on.
- Transcript
Accumulator - Accumulates transcript revisions for one turn.
- Transcript
Hypothesis - The current reading of an in-progress utterance.
Enums§
- Speculation
Decision - Why the gate did or did not fire.