Real-time transcription
Partial and final text
How a partial grows into a final, what ends a segment, and which text to show and which to store.
- A
partialshows the segment being spoken so far. Itstextis the raw words: lowercase, no punctuation, numbers in words. In a long segment, the part already finished is punctuated. Show it greyed, or as a live caption. - A
finalis a finished segment, with punctuation, capitals and numbers as digits (unless you turn them off withpunctuation=falseornumbers=words). It is never revised: store and show these. segment_idties them together: a partial has the id its final will have.
What ends a segment:
| commit | A segment ends | Suits |
|---|---|---|
vad (default) | after a pause of vad_silence_s (1.5 s) in the speech, or when you send {"type": "commit"} | continuous speech: meetings, calls, captions |
manual | only when you send {"type": "commit"}, or after 30 s of speech without a commit | push-to-talk, applications that take turns |
turn (Romanian) | as soon as the speaker sounds finished, else after a pause of vad_silence_s, or when you send {"type": "commit"} | voice bots that answer the caller: End of turn |
- With
vad, a final comes about 1.5 s after the last word, the pause included. Withmanual, it comes a fraction of a second after your commit. Withturn, when the speaker sounds finished, it comes about 0.5 s after the last word at the median. - With
vad, continuous speech without a pause makes one long segment, of up to 30 s. - With
manual, you can commit anywhere, even in the middle of a sentence: recognition goes on across the commit. Withvadandturn, every final restarts recognition: commit at pauses there, as a commit in the middle of a sentence can cost accuracy around it. - A commit with nothing said since the last final gives a
finalwith an emptytext. Skip it.