isFinal means three different things: streaming speech-to-text across vendors
Three streaming speech-to-text vendors, three incompatible meanings for the same flag — one emits fragments to accumulate, one restates everything so far, and one sends a final with an empty transcript meaning commit what you already have. The interface is identical and the state machine behind it is per-vendor.
On this page
TL;DR: Every streaming speech to text vendor gives you the same interface — a stream of results, each carrying
isFinal— and no two of them mean the same thing by it. One emits fragments you must accumulate. One restates the whole utterance every time. One sends a final carrying an empty transcript, meaning "commit what I already told you". Our integration absorbs all of it behind one boolean, and that boolean is set from the vendor's name, not from anything in the event. Which is the tell: the abstraction is nominal, and the state machine behind it is per-vendor.
Streaming speech-to-text has the most deceptive API surface I have worked with. Every vendor gives you a socket, a stream of results, and a flag on each one that says whether it is final. You write an adapter, it works, you add a second vendor behind the same interface, and it also works.
Then a caption renders as the east door the east door is open in production, and you discover that
"final" was never a shared concept.
Three vendors, three contracts
Our live interpretation service integrates three streaming recognisers. Here is what each one does with a single spoken sentence.
Each vendor documents the interim-versus-final split as its own concept — Deepgram's interim results is the clearest public statement of the shape. What none of the three documents is how it differs from the other two, which is the gap this article is about.
| Vendor | What arrives | What isFinal means |
|---|---|---|
| Speechmatics | fragments — each result is new text to append to what you have | this fragment is settled; earlier ones already were |
| Deepgram | whole utterances | this utterance is settled; replace what you were showing |
| cumulative text — each result restates the whole utterance so far | this utterance is settled — and sometimes the transcript is empty |
Those are three different state machines. The first requires you to hold a buffer and append; the second requires you to overwrite; the third requires you to overwrite and to have kept the previous interim around, because the commit signal may carry no text at all.
The empty final
The third row is the one that surprises people, so here is the actual branch we run:
if (isFinal && !received && this.lastInterimText) {
const text = this.stripCommittedPrefix(this.lastInterimText);
this.emit('data', { text, isFinal: true, detectedLanguage });
this.lastCommittedText = this.lastInterimText;
this.lastInterimText = '';
return;
}A final result arrives, isFinal is true, and the transcript is empty. It is not an error and not a
dropped packet: it means "the interim I sent you last is now settled." If your adapter treats a
final as the authoritative text — the obvious reading, and the one the flag's name invites — you
render an empty caption at the end of every sentence.
You cannot handle that without keeping state the interface never told you to keep. The last interim is load-bearing, and nothing in the shape of the API says so.
If the branch keys on the vendor's name, the abstraction is nominal
The boolean the whole state machine turns on is assigned from the provider’s identity, not from anything in the event. That is a cheap thing to grep for and a reliable signal that the interface is a shared shape rather than a shared contract — and that a fourth integration will cost more than the third did.
Why does one flag control all of it?
Because we made it do that, and the way we made it is the tell.
Downstream, one boolean decides whether text accumulates or replaces:
if (data.increment) {
// NB: speechmatics - incremental text
const prefix = baseText && !data.startsFromPunctuation ? ' ' : '';
baseText += prefix + data.transcription;
} else {
// Google/Deepgram — full utterance, replace (not accumulate)
if (data.isFinal) {
baseText = data.transcription;
}
}That is a clean fork, and it is fed by this:
const isSpeechmatics =
this.speechToTextProvider === SpeechToTextProvider.Speechmatics;
// ...
increment: isSpeechmatics,The flag is derived from the provider's identity. Not from a field in the event, not from a capability the vendor advertises, not from anything the stream itself carries — from an equality check against an enum member.
That is the whole finding in one line. A per-event abstraction whose behaviour is selected by who is
on the other end is not an abstraction over the vendors; it is a switch statement wearing one. It
works, and it will keep working, and the moment somebody adds a fourth vendor the correct value of
increment for it is unknowable from the interface — you have to go and read how that vendor emits.
Note also what the else-branch does: it only overwrites when the result is final. The interim display string is computed separately, because a caption has to show something while the sentence is still being spoken. Two different notions of "the current text" live in one function, and the reason is that the vendors disagree about which one they are sending you.
The part that is our doing, not theirs
It would be neater to say we observed three vendor behaviours and modelled them. That is not quite what happened, and the difference matters if you are about to write your own adapter.
Google's stream is genuinely cumulative — each result restates what came before. What makes it look like a "whole utterance, replace" vendor downstream is our own code:
private stripCommittedPrefix(text: string): string {
if (!this.lastCommittedText) return text;
const textLower = text.toLowerCase();
const committedLower = this.lastCommittedText.toLowerCase();
if (textLower.startsWith(committedLower)) {
return text.slice(this.lastCommittedText.length).trim();
}
this.lastCommittedText = '';
return text;
}We remember what we have already committed and slice it off the front of each new result. Two of the three rows in the table above are only similar because of that function, and the case-insensitive comparison plus the reset-on-mismatch tell you it was written against real streams that did not always agree with themselves.
So the honest version of the table is: three vendors emit three different things, and our adapters perform a second layer of reconciliation on top, which is also per-vendor. The uniformity is manufactured twice over, and the boolean at the end is the seam.
Where the sentence ends is also a vendor decision
The fragment-emitting vendor makes one more choice for you: it decides where a sentence ends, and it exposes that as a tunable rather than a fact. Our adapter finds the last end-of-sentence punctuation mark in a segment and splits there — head emitted as final, tail carried forward:
const endSegment = lastSeg.results.findLast(
(el) => el.is_eos && el.type === 'punctuation',
);If no such mark exists in the segment, nothing is finalised and the whole thing goes out as interim. Which means the boundary between "settled text" and "text still in flight" is a function of the vendor's punctuation model, and that model has a sensitivity setting. Turn the knob and your finality boundary moves — the same audio produces different finals.
That is worth sitting with. isFinal is not a property of the speech. It is a property of the
vendor's opinion about the speech, mediated by a configuration value.
What we are not telling you
Nothing here is a quality comparison. We never benchmarked these three against each other — no word error rate, no latency measurement, no cost per hour. This is a piece about the shape of an interface, and any sentence in it that reads like a recommendation is being read wrong.
And it is dated. As of 2026-08-13 this is what the three do on the models we connect with. Vendor streaming behaviour is dated behaviour; all three ship changes, and any of this can move in a release without the interface changing at all — which is, in a sense, the article's point restated.
Part of the agreement is ours, not theirs
Two of the three vendors look alike here only because our own adapter strips the committed prefix from a genuinely cumulative stream. That normalisation is work we do, not agreement they reached — and reading it as vendor behaviour is how the next integration gets estimated wrong.
FAQ
Can I just normalise all three to one shape? That is what an adapter layer is, and yes — but notice where the normalisation lives. Ours needs per-vendor state (a last-interim, a committed prefix) that the shared interface has no place for. If your abstraction cannot express the state its implementations need, the state ends up in the implementations, which is fine, and then a downstream boolean has to know which implementation it came from, which is the smell.
Which one should I use? Not answerable from anything here, and we have no data that would answer it. The choice usually turns on language coverage, diarization support and price, none of which this article measured.
Is the empty final a bug? No, and treating it as one is the trap. It is a commit signal in a protocol where text and finalisation are separate concerns — perfectly coherent once you see it, and invisible if you assume a final result contains the result.
How would I find this out before it bites me? Log every event verbatim from each vendor for one real conversation — text, flag, and nothing interpreted — and read the two logs side by side. All three of these differences are obvious in raw event logs and invisible in the adapter you would write from the documentation.
Three things worth taking away
- A shared interface across vendors is a claim, and it needs testing per vendor. Same fields, same flag names, different state machines. The compile step will not catch it and the first vendor will not either.
- If a downstream branch keys on the vendor's identity, the abstraction above it is nominal. That is a cheap thing to grep for and a reliable indicator that a fourth integration will cost more than the third.
isFinalis an opinion with a configuration value behind it, not a fact about the audio. When a sentence ends is decided by a punctuation model you can tune, which means finality is a setting in your stack whether or not you chose it.
If you are integrating a second speech vendor behind the interface that fit the first, that is a cheap thing to have looked at.