Abstract
We introduce a data-driven approach for enabling word-level timestamp prediction in the Canary model. Accurate timestamp information is crucial for a variety of downstream tasks such as speech content retrieval and timed subtitles. While traditional hybrid systems and end-to-end (E2E) models may employ external modules for timestamp prediction, our approach eliminates the need for separate alignment mechanisms. By leveraging the NeMo Forced Aligner (NFA) as a teacher model, we generate word-level timestamps and train the Canary model to predict timestamps directly. We introduce a new <|timestamp|> token, enabling the Canary model to predict start and end timestamps for each word. Our method demonstrates precision and recall rates between 80% and 90%, with timestamp prediction errors ranging from 20 to 120 ms across four languages, with minimal WER degradation. Additionally, we extend our system to automatic speech translation (AST) tasks, achieving timestamp prediction errors around 200 milliseconds. Our code is open-sourced through NeMo, and the checkpoint is released at Hugging Face.
Introduction
Modern Automatic Speech Recognition (ASR) systems excel at transcribing speech, but identifying exactly when each word is spoken remains a significant challenge. Precise word-level timestamps are essential for applications such as closed captioning, video search, and speech-to-speech translation.
Traditionally, this requires "forced alignment," a post-hoc process that matches audio frames to text. While some end-to-end models attempt to derive timing from internal attention weights, these heuristic methods can be unreliable and often require processing long audio segments. The primary obstacle to native timestamping is data scarcity: most large-scale speech datasets lack the granular, word-by-word timing labels necessary for direct model training.
Methodology
To address the data gap, we employ a teacher-student learning strategy. We utilize the NeMo Forced Aligner (NFA) as a teacher to generate word-level timestamps for approximately 9,000 hours of multilingual speech data. This data is then used to train the Canary model—a Conformer-based encoder-decoder—to treat timestamping as a native task.
We introduced a specific <|timestamp|> prompt. When active, the model outputs a sequence of special tokens: <|start_time|> Word <|end_time|>. Time is quantized into 451 discrete tokens, where each integer represents an 80ms frame, allowing the model to cover up to 36 seconds of audio. For Automatic Speech Translation (AST), we map source audio to translated text by first aligning the source audio to source text via NFA and then using awesome-align to bridge the source and target languages.
Key Results and Insights
Our data-driven approach demonstrates that native timing prediction is superior to heuristic methods like "WhisperTimestamped." By training the model to emit timestamps as part of its vocabulary, we achieve high accuracy with minimal "tax" on transcription quality. For ASR, we observed only a negligible 0.2% increase in Word Error Rate (WER) compared to the baseline.
As shown in the performance metrics, the model achieved precision and recall rates between 83% and 93.7% for ASR across English, Spanish, and French. Timing accuracy (measured by Start and End Difference) ranged from 20ms to 120ms. German proved slightly more challenging, likely due to its complex grammatical structures.
In the context of AST, this study represents the first major investigation into word-level translation timing. The model successfully learned to handle reordering—assigning correct timestamps even when translated words appear in a different order than the source audio. While timing error for AST averaged around 200ms, we observed a more significant drop in translation quality (approximately 4.4 BLEU points), suggesting that the simultaneous task of translation and timing increases model cognitive load.
Limitations and Future Work
The primary limitation remains the performance degradation in translation tasks (BLEU/COMET scores). German-English pairs are particularly difficult due to significant structural reordering (SOV vs. SVO). Future research will focus on refining the AST timestamping process to close the quality gap, potentially through improved alignment teachers or more sophisticated training objectives to help the model manage the dual burden of translation and timing more efficiently.
Summary updated