arXiv:2508.12301cs.CLcs.LG2025-08

将Whisper转为低延迟流式语音识别模型,支持实时转写。

WhisperRT -- Turning Whisper into a Causal Streaming Model

  • 让编码器变为因果结构,逐块处理音频输入
  • 在300毫秒内实现低于现有方法的延迟,性能更优
  • 适合需要实时语音转写的系统开发与研究

自动语音识别(ASR)已取得显著进展,如OpenAI Whisper和NVIDIA Canary等模型在离线转录任务中达到顶尖水平。然而,这些模型因架构和训练方式限制,无法用于流式(在线或实时)转录。本文提出一种方法,将Transformer编码器-解码器模型转化为低延迟流式模型:编码器变为因果结构以增量处理音频,解码器基于部分编码状态生成与时间上下文对齐的输出。需显式同步编码帧与词元输出,因词元仅在足够声学证据后生成,导致固有延迟,因此需微调编码器-解码器对齐机制。我们提出一种优化推理机制,利用微调后的因果编码器与解码器,实现贪婪及束搜索解码,且被证明是局部最优。在小于300毫秒的低延迟分块条件下,实验表明该微调模型在多数情况下优于现有非微调流式方法,同时复杂度更低。我们开源了训练与推理代码及微调模型,以推动流式ASR研究发展。

原文摘要 · Abstract (English)

Automatic Speech Recognition (ASR) has seen remarkable progress, with models like OpenAI Whisper and NVIDIA Canary achieving state-of-the-art (SOTA) performance in offline transcription. However, these models are not designed for streaming (online or real-time) transcription, due to limitations in their architecture and training methodology. We propose a method to turn the transformer encoder-decoder model into a low-latency streaming model. The encoder is made causal to process audio incrementally, while the decoder conditions on partial encoder states to generate tokens aligned with the available temporal context. This requires explicit synchronization between encoded input frames and token emissions. Since tokens are produced only after sufficient acoustic evidence is observed, an inherent latency arises, necessitating fine-tuning of the encoder-decoder alignment mechanism. We propose an updated inference mechanism that utilizes the fine-tuned causal encoder and decoder to yield greedy and beam-search decoding, and is shown to be locally optimal. Experiments on low-latency chunk sizes (less than 300 msec) show that our fine-tuned model outperforms existing non-fine-tuned streaming approaches in most cases, while using a lower complexity. We release our training and inference code, along with the fine-tuned models, to support further research and development in streaming ASR.

语音识别流式处理Whisper低延迟

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。