Skip to main content
QUICK REVIEW

[Paper 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 Science0 citations
TL;DR

The paper provides a complete, self-hosted streaming pipeline for enterprise realtime voice agents (STT → LLM → TTS) with function calling, detailing architecture, implementation, and latency benchmarks, and releasing a 9-chapter open-source tutorial.

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.

Motivation & Objective

  • 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.

Proposed method

  • 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.

Experimental results

Research questions

  • 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?

Key findings

  • 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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.