Sink or SWIM: Tackling Real-Time ASR at Scale

Federico Bruzzone, Walter Cazzola, Matteo Brancaleoni, Dario Pellegrino

TL;DR

This paper introduces SWIM, a novel real-time Automatic Speech Recognition (ASR) system designed to handle multiple concurrent users and languages simultaneously. By leveraging a shared Whisper model and a unique buffer merging strategy, SWIM achieves scalable, low-latency, and accurate transcriptions, overcoming the limitations of existing single-client ASR solutions.

What Problem Does This Paper Address?

Modern applications, from voice assistants to live transcription services, increasingly rely on real-time Automatic Speech Recognition (ASR). However, scaling these systems to support numerous concurrent users while maintaining low latency and high accuracy presents a significant challenge. Existing solutions often fall into two categories: single-client systems that struggle with concurrency, or multi-client systems that can be resource-intensive or complex to manage. The core problem is how to efficiently process multiple audio streams in real-time from various users and languages using a powerful but computationally demanding ASR model like OpenAI's Whisper, without sacrificing performance or accuracy.

Methods

SWIM's core innovation lies in its ability to enable model-level parallelization for a single, shared ASR model, specifically OpenAI's Whisper. Instead of running multiple instances of the Whisper model (which is resource-prohibitive), SWIM uses a novel architecture:

  • Shared ASR Model: A single instance of the Whisper model (specifically, a faster-whisper implementation) is shared across all incoming audio streams.
  • Buffer Merging Strategy: Each client's audio stream is buffered individually by dedicated services. These individual buffers are then merged into a single, shared audio buffer that is fed to the Whisper model. This allows the model to process multiple audio streams concurrently.
  • Adaptive Hypothesis Buffer with Local Agreement: To maintain transcription fidelity and handle linguistic variations, SWIM employs an adapted hypothesis buffer. This buffer uses a similarity metric (QRatio) for local agreement between consecutive transcriptions, rather than strict token equality. A fallback mechanism is also included to recover from potential discrepancies.
  • Timestamp Alignment: Precise word-level timestamps are crucial for synchronizing transcriptions with audio and for managing buffer segmentation.

Datasets

The evaluation of SWIM utilized four publicly available datasets:

  • Google Fleurs: A diverse multilingual dataset covering 102 languages, used to assess robustness across a wide range of speech types.
  • Multilingual LibriSpeech (MLS): Contains read audiobooks in 8 European languages, suitable for evaluating moderately resourced multilingual settings.
  • LibriSpeech-Long: An extension of LibriSpeech with longer audio segments, testing the model's ability for long-range temporal modeling.
  • Italian Parkinson's Voice: A dataset of Italian speech samples from patients with Parkinson's disease and control subjects, used to evaluate performance in pathological speech recognition scenarios.

The paper notes that they used the large-v3-turbo version of Whisper for its efficiency improvements.

Key Insights and Ideas

  • Model-Level Parallelization is Key: The paper demonstrates that achieving true scalability in real-time ASR doesn't necessarily require multiple model instances. A single, well-managed model instance can be effectively utilized for concurrent processing.
  • Buffer Merging is More Than Just Concatenation: The clever merging of audio buffers, combined with precise timestamp management, is crucial for feeding diverse streams into the Whisper model without losing track of individual client contributions or introducing unnecessary latency.
  • Semantic Accuracy Matters More Than Perfect Formatting: The use of similarity metrics (QRatio) for local agreement highlights that for real-time applications, preserving the meaning of the transcription is often more critical than perfect punctuation or casing, especially in multilingual contexts.
  • Chunk Duration Trade-offs: The optimal chunk duration for processing audio streams is not fixed. Shorter chunks (0.5s) offer lower latency in low-load scenarios, while longer chunks (1.0s) can provide better throughput and reduce overhead in high-load situations. SWIM's architecture can dynamically adapt to these trade-offs.

Key Results

SWIM demonstrates significant improvements in scalability and performance compared to existing solutions:

  • Scalability: SWIM successfully scales to support up to 20 concurrent users.
  • Low Latency: With 5 concurrent clients, SWIM achieves an average delay of approximately 2.4 seconds, a notable reduction compared to Whisper-Streaming's ~3.4 seconds in a single-client, English-only setting. This low latency is maintained even with 20 concurrent clients.
  • High Accuracy: SWIM maintains comparable accuracy to Whisper-Streaming across diverse datasets and multilingual scenarios. The Word Error Rate (WER) remains relatively stable, indicating that transcription quality is not significantly degraded by increased concurrency.
  • Multilingual Support: The system effectively handles transcriptions in English, Italian, and Spanish, showcasing its multilingual capabilities.
  • Throughput: The system scales effectively up to 20 concurrent clients without degrading transcription quality or increasing overall throughput.

Limitations and Future Work

  • Whisper Model Limitations: The underlying Whisper model has known issues with silent audio segments, which can lead to hallucinations or repeated phrases. SWIM attempts to mitigate this with optional voice activity detection but acknowledges these artifacts can still influence results.
  • Dataset Diversity: While multiple datasets were used, the authors acknowledge that they may not capture the full diversity of real-world audio streams (e.g., extreme noise, telephony audio, underrepresented languages).
  • Client Configuration Constraints: The current evaluation assumes uniform audio chunk durations and fixed sampling rates. Real-world deployments might involve more varied configurations.
  • Controlled Environment: The evaluation was conducted in controlled server environments, which might not fully represent the constraints of real-world deployments (e.g., limited computational resources, fluctuating network conditions).
  • Future Work: The authors suggest extending support for variable chunk sizes and automatic upsampling/downsampling to increase compatibility with different input formats. They also aim to improve generalizability by covering more diverse audio conditions and client configurations.

Summary updated

Abstract

Real-time automatic speech recognition systems are increasingly integrated into interactive applications, from voice assistants to live transcription services. However, scaling these systems to support multiple concurrent clients while maintaining low latency and high accuracy remains a major challenge. In this work, we present SWIM, a novel real-time ASR system built on top of OpenAI's Whisper model that enables multistream inference for scalable, multilingual transcription. SWIM supports multiple concurrent audio streams without modifying the underlying model. It introduces a buffer merging strategy that maintains transcription fidelity while ensuring efficient resource usage. We evaluate SWIM in multi-client settings-scaling up to 20 concurrent users-and show that it delivers accurate real-time transcriptions in English, Italian, and Spanish, while maintaining low latency and high throughput. While Whisper-Streaming achieves a word error rate of approximately 8.2% with an average delay of approximately 3.4 s in a single-client, Englishonly setting, SWIM extends this capability to multilingual, multiclient environments. It maintains comparable accuracy with significantly lower delay-around 2.4 s with 5 clients-and continues to scale effectively up to 20 concurrent clients without degrading transcription quality and increasing overall throughput. Our approach advances scalable ASR by improving robustness and efficiency in dynamic, multi-user environments.
BibTeX
@article{bruzzone2026sink,
  author = {Federico Bruzzone and Walter Cazzola and Matteo Brancaleoni and Dario Pellegrino},
  title = {{Sink or SWIM: Tackling Real-Time ASR at Scale}},
  journal = {IEEE Transactions on Audio Speech and Language Processing},
  year = {2026},
  doi = {10.1109/taslpro.2026.3675780},
}

Loading related content...

Figure