Free How much of your firm runs on you? Take the 2-minute Key Man Score.
Lesson reading
0%

Lesson 25 / Unit 7: Streaming Recognition

Partial Transcripts

Replay actual prefix predictions and distinguish provisional text from committed output.

A partial transcript is a hypothesis produced before all the evidence is available. Earlier characters can change when later audio arrives. The replay below uses saved outputs from our offline model applied to growing audio prefixes.

Replay Evidence

Recorded prefix experiment · reference 183

200 ms of audio1

Step 1 of 7. Audio playback is independent of these saved steps. Offline recomputation; no live microphone or stateful streaming.

Each step adds up to 200 milliseconds of source audio. The last step uses the remaining samples. These are audio-prefix timestamps, not measured network arrival or response times. The model recomputes each prefix from scratch.

Revision Handling

A consumer should know whether an update replaces an earlier hypothesis or appends new text. Blindly concatenating partial strings can duplicate tokens. Keep an utterance or segment identity, update sequence and explicit commitment state.

Google’s streaming result schema distinguishes interim stability from finality. That API’s fields are not calibrated confidence values for this homemade model; do not copy the names and imply equivalent semantics.

Measure Revisions

For each prefix, retain its audio boundary and hypothesis. Count changed suffixes or edit distance between consecutive hypotheses using a declared definition. A stable wrong output is still wrong, so report final recognition accuracy separately.

for event in probes['prefix_trace']['events']:
print(event['audio_ms'], event['hypothesis'])

The trace is one example. It demonstrates a mechanism rather than estimating the probability of revisions across callers.

Endpoint Boundaries explains why a final segment still does not necessarily authorize a conversational reply. Keep the entity checks at the action boundary.

We do this work for teams shipping voice agents: Self-Hosted Voice Agent .

Edit this lesson on GitHub ↗

Discussion

Questions, corrections and war stories welcome. Sign in with GitHub to comment.

Free guide

Be The 10x Entrepreneur

Get the firm out of your head.

  • 8 chapters
  • 7 worksheets
  • 30 day plan