Formatting Time-Aligned ASR Transcripts for Readability

Maria Shugrina

Abstract

Automatic Speech Recognition (ASR) systems often produce raw text lacking punctuation, capitalization, and numeric formatting, which hinders human readability. This paper presents a framework using Weighted Finite State Transducers (WFSTs) and a novel "timing semiring" to transform raw transcripts into formatted text while preserving word-level audio timestamps. By combining handwritten grammars with class-based language models, the system significantly improves readability and user response times in transcript-based tasks.

Introduction

Raw ASR output is notoriously difficult for humans to scan. A typical voicemail transcript might appear as a continuous stream of lowercase words: "hi bill it’s tracy at around three thirty p m just got an apartment for one thousand three thirty..." In such contexts, "three thirty" is ambiguous—it could represent a time, a price, or an address component.

While previous research has addressed punctuation and capitalization, two critical gaps remain: sophisticated numeric entity formatting (e.g., converting "three thirty" to "3:30" or "1,330") and the preservation of metadata. Maintaining the link between formatted words and their original audio timestamps is essential for interactive user interfaces where clicking a word triggers audio playback.

Methodology: WFST-Based Formatting

The proposed system leverages the linguistic flexibility of handwritten grammars and the statistical power of language models, implemented via Weighted Finite State Transducers (WFSTs).

Transformation Pipeline

The process involves several stages of transformation, as illustrated in the following figure:

Transformation pipeline of a spoken word through various FST stages.
  1. Handwritten Grammars: These define legal rewrites for spoken strings. For instance, a grammar might allow "three thirty" to be mapped to "3:30", "330", or "three 30".
  2. Class-Based Language Model: To resolve ambiguities, an n-gram language model (LM) trained on 185 million tokens of written text is used. To combat data sparsity (e.g., rare numbers like "1,332"), numbers are mapped into semantic classes such as "times" or "currency."
  3. The Timing Semiring: A key technical contribution is the "timing semiring," a mathematical structure that allows WFSTs to carry start and end time intervals as weights. This ensures that a formatted entity like "$1,200" inherits the precise time boundaries of its constituent spoken words ("one thousand two hundred").

Handling Ambiguity

The complexity of the grammars allows the system to navigate multiple potential interpretations of the same spoken input.

WFST grammar for numeric entity formatting, showing multiple paths for 'three thirty'.

Evaluation and Results

The system was evaluated on a held-out set of 7 million tokens for punctuation and capitalization, and a manually formatted version of the LDC Voicemail Part I dataset for numeric entities.

Key Insights

  • Contextual Awareness: The language model enables the system to distinguish between "meet me at [3:30]" and "you owe me [330]" based on surrounding words.
  • Semantic Class Design: An "intuition-based" classification (System A) that recognized specific ranges (e.g., hours 1-12) outperformed a naive digit-count approach, highlighting the importance of semantic awareness.

Performance Metrics

  • Numeric Accuracy: System A achieved a Numeric Entity Error Rate (NEER) of 16.1% (11.2% when ignoring minor whitespace variations).
  • Readability: A user study demonstrated a statistically significant improvement in response time ($p=0.02$) when users interacted with formatted ASR transcripts compared to raw output.
  • Human-Level Efficiency: Response times for formatted ASR were comparable to those for human-written transcripts, even when the underlying ASR had a 20% word error rate.

Conclusion

This work demonstrates that robust formatting significantly reduces the cognitive load on human readers of ASR transcripts. While challenges remain—such as inconsistent comma usage in training data and the handling of disfluencies like "umms"—the use of WFSTs with a timing semiring provides a powerful foundation for high-quality, time-aligned transcript enrichment. Future work may explore automated discovery of optimal numeric classes through clustering.

Summary updated

BibTeX
@inproceedings{shugrina2010formatting,
  author = {Maria Shugrina},
  title = {{Formatting Time-Aligned ASR Transcripts for Readability}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2010},
}
Figure