Skip to main content
QUICK REVIEW

[论文解读] Building Enterprise Realtime Voice Agents from Scratch: A Technical Tutorial

Jielin Qiu, Zixiang Chen|arXiv (Cornell University)|Mar 5, 2026
AI in Service InteractionsComputer Science被引用 0
一句话总结

该论文提供了一个完整的自托管企业级实时语音代理流处理管线(STT → LLM → TTS),具备函数调用,详细描述了架构、实现与延迟基准,并发布了9章的开源教程。

ABSTRACT

We present a technical tutorial for building enterprise-grade realtime voice agents from first principles. While end-to-end speech-to-speech models may ultimately provide the best latency for voice agents, fully self-hosted end-to-end solutions are not yet available. We evaluate the closest candidate, Qwen3-Omni, across three configurations: its cloud-only DashScope Realtime API achieves $\sim$702ms audio-to-audio latency with streaming, but is not self-hostable; its local vLLM deployment supports only the Thinker (text generation from audio, 516ms), not the Talker (audio synthesis); and its local Transformers deployment runs the full pipeline but at $\sim$146s -- far too slow for realtime. The cascaded streaming pipeline (STT $ ightarrow$ LLM $ ightarrow$ TTS) therefore remains the practical architecture for self-hosted realtime voice agents, and the focus of this tutorial. We build a complete voice agent using Deepgram (streaming STT), vLLM-served LLMs with function calling (streaming text generation), and ElevenLabs (streaming TTS), achieving a measured time-to-first-audio of 755ms (best case 729ms) with full function calling support. We release the full codebase as a 9-chapter progressive tutorial with working, tested code for every component.

研究动机与目标

  • Identify the gaps in existing open-source S2S models and enterprise voice frameworks for self-hosted, low-latency voice agents.
  • Propose and demonstrate a cascaded streaming pipeline (STT → LLM → TTS) as a practical path to realtime, self-hosted enterprise voice agents.
  • Evaluate native S2S models vs cascaded pipelines and quantify latency to establish a practical baseline.
  • Provide a complete, tested, open-source implementation across 9 chapters to educate developers.

提出的方法

  • Survey 25+ speech-to-speech models and 30+ voice agent frameworks to assess self-hosted viability.
  • Empirically compare Qwen3-Omni configurations (vLLM Thinker, Transformers, DashScope) against cascaded pipelines.
  • Implement a streaming architecture with Deepgram STT, vLLM-based LLM with function calling, and ElevenLabs TTS, plus a sentence buffer for aggregation.
  • Measure end-to-end latency (TTFA) under multiple configurations and report best-case self-hosted performance.
  • Release a 9-chapter progressive tutorial with working code for all components.

实验结果

研究问题

  • RQ1Can fully self-hosted streaming voice agents with function calling meet practical latency targets?
  • RQ2What is the relative performance of native S2S models versus cascaded streaming pipelines for enterprise voice agents?
  • RQ3How do streaming components (STT, LLM, TTS) and sentence aggregation influence perceived latency?
  • RQ4What is the recommended architecture for self-hosted realtime enterprise voice agents today?

主要发现

  • End-to-end S2S models are not yet self-hostable for realtime voice agents; cloud options can approach realtime latency but are not self-hosted.
  • A cascaded STT → LLM → TTS pipeline remains the practical, fully self-hosted solution with function calling and streaming that achieves sub-1 second TTFA in best cases (~755 ms).
  • Streaming + pipelining reduces perceived latency beyond sequential estimates, with sentence buffering as a critical orchestration primitive.
  • vLLM enables self-hosted streaming LLM serving with function calling, but optimized self-hosted Talker (audio synthesis) remains an unmet need for fully self-hosted real-time performance.
  • The authors provide a complete 9-chapter open-source tutorial detailing every component, from streaming STT to production-ready enterprise agent with tools.
  • Best-case measured end-to-end TTFA for the self-hosted pipeline: approximately 755 ms.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。