How does an ASR model produce partial and final transcripts?
- Authors
- Name
- Amit Shekhar
- Published on
An ASR model produces partial transcripts by quickly guessing the words from the audio it has heard so far, and it produces a final transcript when it decides that a piece of speech is complete, and after that, the text does not change.
In this blog, we will learn about how an ASR model produces partial and final transcripts. We will also see why a streaming model has to guess before the speaker finishes, why the partial transcripts keep changing, how the model decides that a transcript is final, how the final step corrects the earlier guesses, how applications use both types of transcripts, and how we balance speed and accuracy.
We will cover the following:
- What is ASR?
- Batch ASR vs Streaming ASR
- What are partial and final transcripts?
- How does the audio reach the model in chunks?
- How does the model produce a partial transcript?
- Why do partial transcripts keep changing?
- How does the model decide that a transcript is final?
- What happens at the final step?
- How do applications use partial and final transcripts?
- The trade-off between speed and accuracy
I am Amit Shekhar, Founder @ Outcome School, I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.
I teach AI and Machine Learning at Outcome School.
Let's get started.
What is ASR?
ASR stands for Automatic Speech Recognition. An ASR model is a model that converts spoken audio into written text.
When we speak to a voice assistant, when a video shows live captions, or when a meeting app writes down what everyone said, an ASR model is doing the work in the background.
The model listens to the audio and writes the text. The text it writes is called the transcript.
Batch ASR vs Streaming ASR
There are two ways in which an ASR model can work.
Batch ASR: We give the model the complete recording, for example, a 10-minute audio file. The model hears the whole thing from start to end, and then it gives us the full transcript at once. There is no need for partial transcripts here, because the model already has the complete audio.
Streaming ASR: The model receives the audio live, while the person is still speaking. It has to give us text as the speech is happening, not after the speech is over.
Let's say we are watching a live news channel with captions. If the captions appear only after the news reader finishes a 5-minute segment, the captions do not help the viewers at all. We need the words on the screen within a fraction of a second.
This is where streaming ASR comes into the picture. But, a streaming model has to show text before it has heard everything. Hence, it produces two types of transcripts: partial and final.
What are partial and final transcripts?
A partial transcript is the model's current best guess of the words spoken so far. It can change as more audio arrives.
A final transcript is the model's settled answer for a piece of speech. Once it is sent, it does not change.
Partial transcripts are also called interim results or interim transcripts. Final transcripts are also called final results.
Suppose a person says: "I want to book a flight to Boston."
The streaming model sends updates like below:
partial: I
partial: I want
partial: I want to boot
partial: I want to book a
partial: I want to book a fight
partial: I want to book a fight to
partial: I want to book a flight to Boston
final: I want to book a flight to Boston.
Here, we can notice a few things:
- The text grows word by word as the person speaks.
- Some words change. "boot" became "book", and "fight" became "flight".
- The last line is marked final, and it also has proper punctuation.
Now, the question is: how does the model do this? Let's understand it step by step.
How does the audio reach the model in chunks?
In streaming ASR, the audio does not arrive as one file. It arrives as a continuous flow of small pieces called chunks.
For example, the microphone records the sound, and the application sends a small chunk of audio to the model every 100 milliseconds or so.
The flow looks like below:
Person speaking
↓
Microphone
↓
Small audio chunks (one every 100 ms)
↓
Streaming ASR model
↓
Many partial transcripts, then one final transcript
Each time a new chunk arrives, the model has a little more audio than before. So, it can update its guess.
How does the model produce a partial transcript?
When a new chunk arrives, the model does the following:
Step 1: It turns the raw sound of the chunk into numbers that describe the sound, such as how much energy is present at each pitch at each moment. These numbers are called features.
Step 2: The encoder, which is the part of the model that figures out which speech sounds are present, processes these features. It also keeps a memory of the audio it has already heard, so it does not start from zero every time.
Step 3: The decoder, which is the part of the model that produces the text, uses the output of the encoder so far and picks the most likely words.
Step 4: The model sends this current best text to the application as a partial transcript.
Then the next chunk arrives, and the same steps repeat.
The model does not wait for the person to finish. It gives its best guess with the audio it has right now.
Many streaming models are built with methods that support this kind of step-by-step output, for example, CTC (Connectionist Temporal Classification) and RNN-T (Recurrent Neural Network Transducer). They can produce text as the audio flows in, instead of waiting for the whole recording.
Planning your move into AI?
No matter which tech domain you work in today, with your effort, you can transition to these roles:
- AI Engineer
- Forward Deployed Engineer
- AI Agent Engineer
- Harness Engineer
- Voice AI Engineer
- AI Architect
- LLM Engineer
- LLM Inference Engineer
- Gen AI Engineer
- MLOps Engineer
- ML Engineer
- Deep Learning Engineer
Our AI and Machine Learning Program at Outcome School takes you there.
Why do partial transcripts keep changing?
Now, why did "boot" become "book", and why did "fight" become "flight"?
There are three main reasons.
Reason 1: The model has not heard the future yet
Many words sound alike at the start. When the person has said only "boo..." from "book", the word can still be "boot", "book", or "boom". The model has to guess, and it picks "boot".
When a few more milliseconds of audio arrive, the sound becomes clearer, and the model can fix the word. This is why many streaming systems keep the recent words open for correction, instead of locking them the moment they are produced.
Some models wait a little, for example, a few hundred milliseconds, to hear what comes next before deciding on a word. This small wait is called lookahead. More lookahead gives better guesses, but the text appears later.
Reason 2: The words that come later give meaning to the words before
Consider the partial "I want to book a fight to". The sound of "fight" and "flight" is very close. Without the next word, "fight" is a possible guess.
But when the model hears "Boston", the sentence "book a flight to Boston" makes much more sense than "book a fight to Boston". So, the model changes "fight" to "flight".
The model has learned from a huge amount of text and speech which word sequences are common. Hence, a later word can change an earlier one.
We have a detailed blog on keyword boosting that explains how we can help the model pick the right domain words.
Reason 3: The model keeps several guesses at the same time
The decoder does not keep only one sentence in mind. It often keeps a few top candidate sentences at the same time. This is called beam search, and the group of candidates is called the beam.
For example, after hearing a part of the speech, the beam can look like below:
Candidate 1: I want to book a fight (score: 0.48)
Candidate 2: I want to book a flight (score: 0.45)
Candidate 3: I want to boot a flight (score: 0.07)
Here, the partial transcript is the candidate with the highest score right now, which is "I want to book a fight".
When the next chunks arrive with the word "Boston", the scores are updated like below:
Candidate 1: I want to book a flight to Boston (score: 0.90)
Candidate 2: I want to book a fight to Boston (score: 0.08)
Candidate 3: I want to boot a flight to Boston (score: 0.02)
Here, we can see that the top candidate now has "flight" in it. So, the partial transcript changes to "I want to book a flight to Boston".
A partial transcript is the best answer at that moment, and the model can still change it.
A quick note for you
No matter which tech domain you work in, get familiar with these topics:
- LLM
- RAG
- MCP
- Agent
- Fine-tuning
- Quantization
We put it all together in one video:
AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, and Quantization
No need to stop reading - bookmark it and watch later when you get time. Future you will thank you.
Now, let's get back to the topic.
How does the model decide that a transcript is final?
Now, the next big question is: when does the model stop changing the text and say "this is final"?
The answer is endpointing. Endpointing means detecting the point where a piece of speech ends.
The most common signals are:
- Silence: The person stops speaking for some time, for example, half a second. This wait time is usually a setting that we can change. The system treats this pause as the end of the sentence or phrase.
- Voice Activity Detection (VAD): This is a small model that answers one question: "Is someone speaking right now, or not?" When it detects no speech for long enough, the system closes the segment.
- Maximum length: If a person keeps speaking for a long time without a pause, the system closes the segment after a fixed duration, so that the text does not stay partial forever.
- Model-based end detection: Some modern models are trained to predict that the person has finished speaking, by looking at both the sound and the words. For example, "I want to book a flight to..." sounds unfinished, even if there is a pause.
Once the endpoint is detected, the system finalizes that segment. After that, a new segment starts, and the partial transcripts begin again for the next words.
Note: In some services, a segment can become final even before the person stops speaking, once the model is confident about it. Then, a separate flag marks the end of the speech. So, one long sentence can arrive as two or three final pieces, and the application joins them when the end-of-speech flag arrives.
A long conversation becomes a series of segments like below:
Segment 1: partial, partial, partial, final: "I want to book a flight to Boston."
Segment 2: partial, partial, final: "For next Monday."
Segment 3: partial, partial, partial, final: "In the morning, please."
If we want to go deep into how VAD and endpointing fit into the full pipeline when we Design a Real-Time Voice AI Agent, check out our AI and Machine Learning Program at Outcome School.
What happens at the final step?
When a segment becomes final, the system often does some extra work to make the text as good as possible.
Step 1: In some systems, a second pass runs over the full segment. Now the model can see the whole sentence, from start to end, so it can correct words that the fast first pass got wrong. This second pass either scores the candidates from the beam again, which is called rescoring, or decodes the whole segment again with full context.
Step 2: The system picks the best candidate and locks it. The other candidates are dropped.
Step 3: The text is cleaned and formatted. Punctuation and capital letters are added, and spoken forms are converted into written forms. For example, "twenty five dollars" becomes "$25". This conversion is called inverse text normalization.
Step 4: The final transcript is sent with a flag that says it is final, and it does not change after this.
This is why the final transcript is usually more accurate and better formatted than the partial transcripts. It had more time and more context.
How do applications use partial and final transcripts?
The ASR service sends each result with a flag, so the application knows which type it is. A result often looks like below:
{ "transcript": "I want to book a fight to", "is_final": false }
{ "transcript": "I want to book a flight to Boston.", "is_final": true }
Here, is_final: false means it is a partial transcript, and is_final: true means it is a final transcript. Different services use different names for this flag, but the idea is the same.
Now, let's see how different applications use them.
Live captions: The application shows the partial text on the screen right away, so the viewer sees the words instantly. When the final text arrives, it replaces the partial text for that segment.
Voice assistants and voice agents: The application uses the partial text to get ready early, for example, to start understanding the request and preparing a reply. But it takes the real action, such as booking the flight, only on the final text.
Meeting notes and saved records: The application stores only the final transcripts, because they are more accurate and they will not change.
Some services also give a stability score with a partial transcript. It tells how likely that partial text is to stay the same. A high stability means the words are unlikely to change. So, a caption app can show the stable words normally and the unstable words in a lighter color.
Stay updated: Subscribe to our newsletter to get our latest AI and Machine Learning blogs straight to your inbox.
The trade-off between speed and accuracy
There is always a balance between speed and accuracy in streaming ASR.
Let me tabulate the differences between partial and final transcripts for your better understanding.
| Property | Partial transcript | Final transcript |
|---|---|---|
| When it is sent | Many times while the person talks | Once for each segment |
| Can it change? | Yes | No |
| Speed | Very fast | Slower, waits for more audio |
| Accuracy | Lower, based on incomplete audio | Higher, based on the full segment |
| Formatting | Often plain words | Punctuation, capitals, numbers |
| Best used for | Showing text live, early reaction | Taking action, saving the record |
Our settings decide this balance:
- A shorter silence wait makes the final text arrive faster, but the system can cut a person in the middle of a sentence when they only paused to think.
- A longer silence wait avoids cutting people off, but the final text arrives later.
- More lookahead makes partial text more accurate, but it appears later on the screen.
So, we must choose these settings based on our use case. Live captions need speed, while a voice agent that books tickets needs the final text to be correct. We have a detailed blog on how to design a real-time voice AI agent that covers the full pipeline end to end.
Now we must have understood how an ASR model produces partial and final transcripts, why the partial text keeps changing, and how the model decides when the text is final.
Frequently Asked Questions
Are partial transcripts the same as interim results?
Yes. Partial transcripts are also called interim results or interim transcripts. They are the model's current best guess of the words spoken so far, and they can change as more audio arrives. Final transcripts are also called final results, and once they are sent, they do not change.
Should a voice agent take action on a partial transcript?
No. A voice agent can use the partial text to get ready early, for example, to start understanding the request and preparing a reply. But it should take the real action, such as booking the flight, only on the final text, because the partial text can still change.
What is lookahead in streaming ASR?
Lookahead is a small wait, for example, a few hundred milliseconds, that some models use to hear what comes next before deciding on a word. More lookahead gives better guesses, but the text appears later on the screen. So, it is a trade-off between accuracy and speed.
What is a stability score in streaming ASR?
A stability score is a value that some services send with a partial transcript. It tells how likely that partial text is to stay the same. A high stability means the words are unlikely to change, so a caption app can show the stable words normally and the unstable words in a lighter color.
That's it for now.
Thanks
Amit Shekhar
Founder @ Outcome School
You can connect with me on:
Follow Outcome School on:
