Lanson Live APILanson Live API

LiveFinal™

PreviousNext

The delivery boundary that separates internal candidate recognition and AI review from the immutable completed event your application receives.

LiveFinal™ defines the finalization boundary in Lanson Live. It integrates candidate speech recognition and context-aware refinement behind a single delivery boundary—so your application receives one reviewed, completed transcript event per utterance rather than a stream of provisional drafts and retroactive patches.

04 · Finalization BoundarySingle-Handoff Pipeline
Stage 1 · Internal
Bounded Segment Collected
Stage 2 · Behind Boundary
Candidate + Context Review
Stage 3 · Published Event
One Immutable Completed Handoff

Why the delivery boundary defines the developer experience

When you build on a conventional streaming STT API—or bolt an external LLM onto an STT stream—the delivery boundary is in the wrong place:

  • Too early (Traditional STT): Unreviewed acoustic guesses cross the boundary as partial events, and is_final only signals that the acoustic decoder stopped updating its buffer—with zero semantic review.
  • Split across two services (DIY STT + LLM): Raw STT crosses the boundary first, and an external LLM patch arrives later—forcing your UI to either stall or visually rewrite text the user has already read.

LiveFinal™ places the delivery boundary after in-pipeline context review:

[ Audio Stream ] ──► [ Candidate Recognition ] ──► [ Context-Aware Review ] ║ ──► [ Completed Event ]
                     └────────── Internal Pipeline (Not Emitted) ─────────┘ ║     (Delivered to App)
                                                                      Delivery Boundary
Dual-Model Utterance Lifecycle
ASR Candidate Recognition + LLM Reasoning Review vs. Published Application Event
01 · ASR RECOGNITION MODELInternal · Layer 1
“We need to fix the land sun live API.”

Identifies candidate words from audio signals and local acoustic context—never emitted as a draft event.

02 · REASONING MODEL (LLM)Internal · Layer 2
session_context: ["Lanson Live API"]
eval: "land sun live" → "Lanson Live"

Separate reasoning model evaluates the ASR candidate against semantic conversation history before delivery.

03 · FIRST COMMITTED TRANSCRIPTDelivered · Layer 3
“We need to fix the Lanson Live API.”

StableStream™ & LiveFinal™ deliver the reviewed result as the first committed transcript event.

The speech recognition model identifies the words. The reasoning model evaluates them. StableStream™ delivers the reviewed result.Dual-model real-time pipeline

The single-handoff contract

In the realtime WebSocket path (WS /v1/audio/transcriptions/stream), each successfully processed utterance produces one conversation.item.input_audio_transcription.completed event:

  • text: The finalized transcript after in-pipeline review.
  • raw_text: The initial acoustic recognition output prior to refinement, preserved for auditability.
  • transcript.state: Delivered as "stable" (revision: 0)—this endpoint will never emit a later revision event that mutates an already-delivered utterance.
  • transcript.correction_applied: Boolean flag indicating whether in-pipeline refinement changed raw_text.

What "completed" and "stable" mean

Clarity of contract is essential for reliable systems:

  • A delivery boundary guarantee: completed and stable guarantee that the pipeline has finished recognition and contextual review for that segment and will not retroactively overwrite it.
  • Not an infallibility claim: Real-time speech can still contain acoustic ambiguity or domain terms outside the session's context. Always use utterance_index for ordering and inspect transcript.safe_for_downstream before triggering automated downstream actions.

Next steps