Building Enterprise Realtime Voice Agents from Scratch (2026)
FreeSalesforce AI Research: complete tutorial for production voice agents — cascaded streaming pipeline (STT→LLM→TTS), ~750ms TTFA, function calling, full open-source codebase with 9 chapters
About Building Enterprise Realtime Voice Agents from Scratch (2026)
This technical tutorial from Salesforce AI Research provides a comprehensive, step-by-step guide to building enterprise-grade realtime voice agents using a cascaded streaming pipeline (Speech-to-Text → LLM → Text-to-Speech). The tutorial evaluates why end-to-end speech-to-speech models are not yet practical for self-hosted deployments, using Qwen3-Omni as a case study (cloud API achieves ~702ms but not self-hostable; local vLLM lacks audio synthesis; local Transformers full pipeline is ~146s). The recommended architecture uses Deepgram for streaming STT, vLLM-served LLMs with function calling for streaming text generation, and ElevenLabs for streaming TTS, achieving a measured time-to-first-audio (TTFA) of 755ms (best case 729ms). The full open-source codebase is released as a 9-chapter progressive tutorial with working, tested code for every component.
Key Features
Pros & Cons
- Practical step-by-step tutorial with fully working open-source code
- Achieves low latency (~755ms TTFA) suitable for realtime use
- Modular architecture allows swapping components (STT/LLM/TTS)
- Includes function calling, a key requirement for enterprise actions
- Transparent evaluation of end-to-end alternatives with concrete numbers
- Not a true end-to-end speech-to-speech model – relies on cascaded components
- Requires external proprietary services (Deepgram, ElevenLabs) for STT and TTS
- Latency of 755ms may still be noticeable in highly interactive scenarios
- Tutorial focuses on specific tools; may not cover all production concerns (scaling, error handling)
- Self-hosted LLM component (vLLM) requires significant compute resources