Bidirectional Real-Time Voice Conversation with Large Language Models: A Pipeline Architecture for Human-Like AI Dialogue

Current approaches to AI interaction remain largely text-based and unidirectional - a user types, an AI responds. This paper presents a system architecture that enables bidirectional, real-time voice conversation between a human user and a large language model, achieving sub-3-second end-to-end latency. The system allows users to initiate a voice "call" with an AI agent, speak naturally, receive spoken responses, and interrupt mid-utterance - closely replicating the dynamics of a human telephone conversation. We describe the full pipeline: client-side voice activity detection, WebSocket-based audio streaming, server-side speech-to-text via Whisper, LLM inference with GPT-5.4, sentence-boundary text-to-speech pipelining via ElevenLabs, and real-time audio chunk delivery back to the client. We report a P50 time-to-first-audio of approximately 1.6 seconds and discuss architectural decisions that make this latency achievable. The architecture is domain-agnostic and applicable to any use case requiring natural spoken human-AI interaction.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-20
DOI
https://doi.org/10.5281/zenodo.19140279
Primary Topic
AI in Service Interactions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bidirectional Real-Time Voice Conversation with Large Language Models: A Pipeline Architecture for Human-Like AI Dialogue

Dan Zabrotski
Zenodo (CERN European Organization for Nuclear Research)
AI in Service Interactions
article

Bidirectional Real-Time Voice Conversation with Large Language Models: A Pipeline Architecture for Human-Like AI Dialogue

Dan Zabrotski
article en

Abstract

Current approaches to AI interaction remain largely text-based and unidirectional - a user types, an AI responds. This paper presents a system architecture that enables bidirectional, real-time voice conversation between a human user and a large language model, achieving sub-3-second end-to-end latency. The system allows users to initiate a voice "call" with an AI agent, speak naturally, receive spoken responses, and interrupt mid-utterance - closely replicating the dynamics of a human telephone conversation. We describe the full pipeline: client-side voice activity detection, WebSocket-based audio streaming, server-side speech-to-text via Whisper, LLM inference with GPT-5.4, sentence-boundary text-to-speech pipelining via ElevenLabs, and real-time audio chunk delivery back to the client. We report a P50 time-to-first-audio of approximately 1.6 seconds and discuss architectural decisions that make this latency achievable. The architecture is domain-agnostic and applicable to any use case requiring natural spoken human-AI interaction.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 17%
AI in Service Interactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.