Speech and audio
Text Normalization, Punctuation, Timestamps, and Confidence
Design inverse text normalization, punctuation, casing, redaction, timestamping, and confidence as explicit, reversible transcript policies.
By the end you can
- Define text normalization, punctuation, timestamps, and confidence as an operational problem with explicit inputs, outputs, and boundaries
- Distinguish spoken form, written normalization, and structured extraction without treating them as interchangeable
- Trace the workflow from preserve a raw layer through calibrate and expose confidence
- Evaluate text normalization, punctuation, timestamps, and confidence using entity-level normalization accuracy by type and evidence from difficult deployment slices
Example
7.4 errors per 100 words, and the formatting looked clean
Dictated clinical notes carry 7.4 errors per 100 words. Zhou and colleagues counted them: 217 notes dictated in 2016 at two US health systems, published in JAMA Network Open in 2018. Their finding, in their own words: “The error rate in SR notes was 7.4% (ie, 7.4 errors per 100 words). It decreased to 0.4% after transcriptionist review and 0.3% in SNs.”
96.3% of the speech-recognition notes contained at least one error. 5.7% of the errors at that stage were judged clinically significant. Read the three numbers as a sequence: 7.4%, then 0.4%, then 0.3%. What removed the errors was a transcriptionist reading the note and a physician signing it. No formatting score sits anywhere in that chain.
That is the gap this lesson is about. A polished line does not announce which of its properties came from the speaker and which came from a rule. Entity-level normalization accuracy by type is the one measurement usually watching this stage. It asks whether a transformation applied cleanly. It never asks what the speaker meant. Everything a system does to a transcript after recognition is harder to check than recognition itself, precisely because its output arrives looking finished.
- The decision this lesson turns on: are inverse text normalization, punctuation, casing, redaction, timestamping and confidence explicit, reversible transcript policies, or whatever the post-processor happens to do?
- The failure to watch for is the class Zhou et al. called clinically significant — 5.7% of the errors at the speech-recognition stage — where a rewritten number, unit, date or negation changes what the record says the speaker said.
- The evidence a team needs first is entity-level normalization accuracy by type. It shows how each class of rewrite behaves instead of averaging them into one score. On its own, it would have scored a well-formatted line in that 7.4% as correct.
- Keep the raw tokens, the normalized text, the alignments between them and the provenance of every transformation. The review step that took 7.4% down to 0.4% needs something to review.
Case
Timestamps the model does not supply, captions the rules require
The dosage case is rewriting in place, and the audio still holds the truth of it. Timing is the other claim a transcript makes. It is often the weakest one in the file, because in many systems nobody produced it in the first place.
Whisper's utterance timestamps are prone to inaccuracies, and word-level timestamps are not available from the model out of the box. WhisperX, presented in 2023, adds voice activity detection and forced phoneme alignment to recover them. So the timing that reaches the page is not something the recognizer said. A second stage reconstructed it, and the finished line carries no mark saying so.
Regulators are less forgiving here than benchmarks are. United States caption rules require captions to be accurate, synchronous, complete and appropriately placed. The Federal Communications Commission adopted them in 2014, in FCC 14-12, which says what synchronous means: “In order to be synchronous, captions must coincide with their corresponding spoken words and sounds to the greatest extent possible, given the type of the programming. This means that captions should begin to appear at the time that the corresponding speech or sounds begin and end approximately when the speech or sounds end.”
A legal obligation is written against a quantity the recognizer never emitted and a second stage invented. Nothing in the caption file distinguishes the two.
Analogy
A copy editor working from uncertain notes
The rewriting stage and the alignment stage have the same shape. Each one finishes a document that arrived unfinished, and finishing it means deciding things the source never decided.
A copy editor turns shorthand into finished prose, and the polish settles ambiguities the notes never settled. Formatting improves readability. It can also resolve ambiguity incorrectly. The difference is scale and memory. An editor makes that call a few hundred times a week and can be asked about any one of them, including the one that would have counted among the 5.7% Zhou et al. called clinically significant. A post-processor makes it across millions of transcripts and never registers the one where it mattered.
Keep transformations reversible when formatting can change meaning.
The same digits, verbalized two different ways
It is worth naming that layer precisely. ASR text post-processing maps spoken-form tokens into written conventions: punctuation, casing, entities, timestamps, and redactions. These transformations are useful, and nobody wants to read raw spoken form. They are also ambiguous, domain-dependent, and harder to audit than the raw recognized tokens they replace. A misrecognized word looks wrong. A wrongly formatted one looks finished.
The ambiguity is not a corner case. It is the textbook definition of the task. A 2019 paper in Computational Linguistics sets it out with a worked example: “In this application, one must decide, for example, that 123 is verbalized as one hundred twenty three in 123 pages but as one twenty three in 123 King Ave.” The same three digits, two correct readings, and only the context decides. The same paper reports that neural normalizers occasionally emit what its authors call unrecoverable errors — reading 3 cm as three kilometers — and that finite-state covering grammars suppress them. Unrecoverable is the operative word. Nothing downstream can undo it, because the evidence it contradicted is no longer in the text.
So the first thing to settle is which document is being produced at all. Spoken form, written normalization and structured extraction each hand the reader a different document. A team that has not chosen between them will ship all three by accident.
Confidence belongs to this same layer and inherits the same difficulty. It is not one universal probability. Token scores, sequence scores, calibration models, agreement signals and timestamps depend on the decoder, the normalization, the segmentation and the target event being predicted. Two numbers labelled confidence in the same product may not be answering the same question.
Once the formatted transcript becomes the record people read and act on, the recognizer's raw output stops being the thing anyone checks.
Key idea
Above 0.7, and wrong 10–20% of the time
Formatting stays invisible until it is wrong. Four conditions are where the rewriting of spoken form, the added punctuation, the timestamps and the confidence numbers stop holding.
1) Normalization changing dosage, account, date, or legal meaning — the class Zhou et al. counted as clinically significant. 2) Punctuation suggesting certainty or speaker intent that the speaker never supplied. 3) Timestamp drift after text insertion or deletion, which pulls a caption away from the moment FCC 14-12 requires it to start on. 4) Displaying uncalibrated confidence as a percentage.
The fourth is the quietest, because it is the only one that arrives already looking like evidence. It has also been measured. Huo and colleagues put Whisper into additive noise in 2025 and reported: “We conduct a systematic analysis of Whisper's behavior in additive noise conditions and find that overconfident errors increase dramatically at low signal-to-noise ratios, with 10-20% of tokens incorrectly predicted with confidence above 0.7.” Their selective post-hoc temperature scaling cuts expected calibration error by 58% in the −18 to −5 dB range on the R-SPIN dataset, while tripling normalized cross entropy.
Read that as a user interface problem, not a modelling one. A reader shown 0.7 beside a token, in noise, is reading a number that belongs to the tokens the system got wrong between 10% and 20% of the time. The score becomes the chance of being right only once someone has checked it against outcomes on the same decoder, the same normalization and the same segmentation. That is exactly what a calibration step does.
A confidence percentage printed beside a rewritten dosage or account number offers no protection: in additive noise, 10-20% of tokens Whisper gets wrong still carry confidence above 0.7 until someone calibrates them.
Comparison
Three documents from one recording
The choice deferred a moment ago is this one. Spoken form keeps words close to what was uttered, disfluency and verbalized numbers included. The digits stay as one twenty three, the ambiguity intact, and the reader can still see that 123 pages and 123 King Ave were never the same reading. Written normalization is the polished line, the one a clinical note ends up with, where the decision has already been made and is no longer visible. Structured extraction lifts fields out of the same audio for something downstream to act on, and validates them against a schema rather than against the audio.
The three answer different questions about the same recording, and each is checked in a different way. The first against the tokens, the second against written convention, the third against a schema that never heard the speaker.
Spoken form
Words close to what was uttered, including disfluency or verbalized numbers.
- Decision focus: Preserve a raw layer
- Useful evidence: Entity-level normalization accuracy by type
- Watch for: Normalization changing dosage, account, date, or legal meaning
- Best used when its assumptions are documented for text normalization, punctuation, timestamps, and confidence
Written normalization
A standardized representation such as dates, currency, units, or punctuation.
- Decision focus: Apply explicit transformations
- Useful evidence: Punctuation and casing quality with downstream impact
- Watch for: Punctuation suggesting certainty or speaker intent
- Best used when its assumptions are documented for text normalization, punctuation, timestamps, and confidence
Structured extraction
Fields or entities derived from the transcript and validated against a schema.
- Decision focus: Represent ambiguity
- Useful evidence: Timestamp error by word duration and speaking style
- Watch for: Timestamp drift after text insertion or deletion
- Best used when its assumptions are documented for text normalization, punctuation, timestamps, and confidence
Example
The question mark is the mark that gets lost
Which of those checks matters depends on what the transcript is for. Captions, clinical notes, call analytics and voice forms each ask post-processing for something different.
Punctuation is the case where the cost is easiest to see, because one mark carries the whole speech act. Tilk and Alumäe measured punctuation restoration in 2016 on the IWSLT2011 English test set, roughly 13K words. Their best model reaches an overall F1 of 64.4 on reference transcripts and 61.4 on ASR output. The question mark falls from 66.7 to 54.0 across the same pair. The earlier DNN baselines restored no question marks at all — precision and recall of 0. Their own summary of the gain: “The overall F1-score improves by 8.9% on reference text and by 10.5% on ASR output when comparing our T-BRNN model to the best baseline (DNN-A).”
So the one mark that records whether an utterance was a question is the worst-scoring class, and it degrades further once the input is real recognizer output rather than a clean reference. A transcript that renders a question as a statement has not misheard a word. It has changed what the speaker did.
- In captions, punctuation improves readability but can alter perceived tone — and question-mark F1 of 54.0 on ASR output is the measure of how often the tone is invented.
- In clinical notes, units, numbers and negation require domain validation, because the review step is what took Zhou et al.'s 7.4% error rate down to 0.4%.
- In call analytics, timestamps and redaction have to survive transcript edits: both were computed against text an editor has since replaced.
- In voice forms, structured fields need schema and business-rule checks beyond ASR, since a field that validates cleanly can still hold the wrong reading of the same digits.
Visual
Why production ITN is still hand-written grammars
All of that argues for one ordering, and the ordering is worth stating as a sequence of moves.
Preserving a raw layer comes first. It is the step that creates the assumptions: the promise that the original tokens, the alternatives and the alignments are still reachable. Applying explicit transformations then spends those assumptions. Every rewrite is permitted only because the thing it replaced was kept.
The industry's own answer to how that second step should be built is unusually blunt. A 2021 paper on NeMo inverse text normalization says it in one line: “Many state-of-the-art ITN systems use hand-written weighted finite-state transducer(WFST) grammars since this task has extremely low tolerance to unrecoverable errors.” Its authors evaluate the open-source NeMo ITN library on a modified version of the Google Text Normalization dataset. The reason for the hand-written grammar is not conservatism about machine learning. A rewrite of this kind is unrecoverable, in the same sense as reading 3 cm as three kilometers. So the stage is built to be inspectable and versioned, rather than merely accurate on average.
Calibrating and exposing confidence is where a team finds out whether the promise survived the workflow.
Preserve a raw layer
Retain recognized tokens and acoustic alignment before irreversible formatting.
Apply explicit transformations
Version rules or models for numbers, dates, punctuation, casing, and redaction.
Represent ambiguity
Use alternatives, uncertainty, or confirmation for high-risk forms.
Calibrate and expose confidence
Define the event, population, threshold, and user action associated with confidence.
Confidence numbers are calibrated against whatever the raw layer kept, so anything lost before that point is quietly missing from the calibration too.
Example
What forced alignment actually gets right
That last move is also where the evidence comes from. Entity-level normalization accuracy by type reports that the transformations fire correctly, and reports nothing else. It would score a well-formatted line in Zhou et al.'s 7.4% as clean.
The timing evidence is the one most often assumed rather than measured, and it has a published distribution. The Montreal Forced Aligner paper compared forced-aligned boundaries with hand annotation on the Buckeye corpus in 2017. Only 33% of word boundaries fell within 10 ms. 68% fell within 25 ms, with a mean difference of 24.1 ms. The comparison McAuliffe and colleagues draw is the point: “68% of manual/aligned differences are under 25 msec, which is significantly lower than the 90% intertranscriber agreement reported at 26 msec tolerance.” Forced alignment is the same mechanism WhisperX uses to supply word timestamps the recognizer never emitted. And a caption is required to begin when the speech begins.
- Entity-level normalization accuracy by type is the core task evidence, and the only one of the four that is about the rules themselves rather than about what the reader ends up believing.
- For system behavior, measure punctuation and casing quality together with their downstream impact, reported per mark — Tilk and Alumäe report 54.0 for the question mark against 61.4 overall on ASR output — not pooled into one figure.
- The robustness slice is timestamp error broken out by word duration and speaking style, against a yardstick like the 33% within 10 ms and 68% within 25 ms measured on Buckeye.
- The lifecycle evidence is calibration error, selective risk and correction behavior — the ground on which the Whisper calibration work could report a 58% cut in expected calibration error rather than an impression of improvement.
Report entity-level normalization accuracy by type together with calibration error, selective risk, and correction behavior.
Steps
Design a reversible transcript format
There is a plain test for whether any of this was done. A transcript format is reversible when another team can walk a formatted line back to the audio and show that the formatting changed what the speaker said: that the digits printed as 123 were spoken as one twenty three, an address and not a page count, and that nothing in the finished line recorded which reading was chosen.
To design one, say what preserving a raw layer assumes, give one counterexample where that assumption fails, and say what calibrating and exposing confidence then does. The counterexample is easy to find. An unrecoverable rewrite — 3 cm read as three kilometers — leaves no trace in the text it replaced. That is exactly why NeMo's authors keep the stage in versioned grammars a person can read.
1. Store multiple layers
Keep raw tokens, normalized text, alignments, and transformation provenance.
2. Mark critical forms
Flag numbers, names, units, dates, negation, and addresses.
3. Test ambiguity
Create utterances with several plausible written interpretations.
4. Define correction tools
Allow users to inspect audio, alternatives, and the normalization history.
Keep the raw layer, the alternatives, and the normalization history reachable from the finished line — without them, a reader who doubts the formatting has nowhere to go.
Key takeaways
- Post-processing is a second author on every transcript. Punctuation, casing, entities, timestamps and redactions are all written after recognition, and none of them are marked as such on the page.
- Confidence is not one universal probability: in additive noise, Whisper puts confidence above 0.7 on 10-20% of the tokens it gets wrong, so a score means nothing apart from the decoder, normalization and segmentation it was measured on.
- Keep the raw spoken-form layer first and calibrate confidence last; the second is only possible because of the first. Production ITN stays in hand-written weighted finite-state transducer grammars because this stage has extremely low tolerance to unrecoverable errors.
- Decide early which of the three documents you are producing — spoken form, written normalization, or structured extraction. 123 is one hundred twenty three in 123 pages and one twenty three in 123 King Ave, and only one of the three keeps that choice visible.
- Normalization can silently rewrite a dosage, account, date or legal phrase. Zhou et al. found 7.4 errors per 100 words in dictated clinical notes, 96.3% of notes carrying at least one, and 5.7% of the errors at that stage clinically significant. Reviewers, not scores, brought it to 0.3%.
- Never let entity-level normalization accuracy by type carry a release on its own. Pair it with calibration error, selective risk and correction behavior, and check timing against measured alignment error rather than assuming it.