---
title: "One-second voice-to-voice latency with Modal, Pipecat, and open models"
description: "A conversational voice bot on Modal reaches roughly one-second voice-to-voice latency."
url: "https://swe.quest/articles/one-second-voice-to-voice-latency-with-modal-pipecat-and-open-models-a0369eb06c4f6162"
canonical: "https://modal.com/blog/low-latency-voice-bot"
source: "Modal"
published: "2025-11-04"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["speech-audio","inference","realtime","performance","rag"]
---

# One-second voice-to-voice latency with Modal, Pipecat, and open models

A post on [Modal](https://swe.quest/sources/modal.md), published 2025-11-04, 12 min read, Case study. Original: [https://modal.com/blog/low-latency-voice-bot](https://modal.com/blog/low-latency-voice-bot)

## Summary

A conversational voice bot on Modal reaches roughly one-second voice-to-voice latency. It uses Pipecat to orchestrate an STT → RAG → LLM → TTS pipeline with Parakeet-tdt-v3, Qwen3-4B-Instruct on vLLM, Kokoro TTS, and ChromaDB with all-MiniLM-L6-v2 retrieval. The main latency levers are running the stateful Pipecat bot on CPU while GPU services autoscale independently, using Pipecat's local VAD and SmartTurn to segment audio instead of streaming STT, and tuning vLLM for time-to-first-token. On the network side, the bot talks to services over WebSockets through Modal Tunnels that bypass the input plane, with a spawned FunctionCall session restoring autoscaling, and services are pinned to clustered regions near the user. Latency was measured by recording real conversations and diarizing them with Pyannote across region and tunnel configurations.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)

## Prerequisites

- STT/LLM/TTS pipelines ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- WebRTC and WebSockets basics ([easy posts on Communications](https://swe.quest/tags/communications.md?difficulty=easy))
- LLM inference serving ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))

## Keywords

Modal, Pipecat, vLLM, Parakeet, Qwen3, Kokoro, ChromaDB, Pyannote

## Related posts

- [Reachy Mini goes fully local](https://swe.quest/articles/reachy-mini-goes-fully-local-478ea5b679c393d9.md): Hugging Face · 2026-05-27 · Medium · 10 min read · Speech & audio, Inference & serving, LLMs
  Reachy Mini's conversation app can now run entirely on local hardware using the speech-to-speech library, a cascaded VAD → STT → LLM → TTS pipeline that exposes a Realtime API-compatible /v1/realtime WebSocket.
- [FastRTC: The Real-Time Communication Library for Python](https://swe.quest/articles/fastrtc-the-real-time-communication-library-for-python-e889b4f612747a64.md): Hugging Face · 2025-02-25 · Medium · 6 min read · Speech & audio, Real-time systems, Python, LLMs
  FastRTC is a Python library for building real-time audio and video AI applications over WebRTC or WebSockets without needing WebRTC expertise.
- [How Decagon shipped real-time voice AI on Modal](https://swe.quest/articles/how-decagon-shipped-real-time-voice-ai-on-modal-b1a29f8666a68e7d.md): Modal · 2025-11-13 · Hard · 4 min read · Inference & serving, Model training, Speech & audio, LLMs, Performance engineering
  Decagon Voice 2.0 cut latency by 65% by replacing large frontier models with small open-source models fine-tuned through augmented multi-domain data, curriculum and mixed-objective SFT, and reinforcement learning.
- [Build Low-Latency Multilingual Voice Agents: Open Weights & Full Deployment Control with NVIDIA Magpie TTS](https://swe.quest/articles/build-low-latency-multilingual-voice-agents-open-weights-full-deployment-9aa5de0a729d7293.md): Hugging Face · 2026-08-10 · Easy · 7 min read · Speech & audio, Inference & serving, AI agents
  NVIDIA Magpie TTS Multilingual is a 364M-parameter open-weights text-to-speech model covering 12 languages, with Modern Standard Arabic, Korean and Brazilian Portuguese newly added.
- [Mr. Bones: A Pirate-Voiced Halloween Chatbot Powered by Docker Model Runner](https://swe.quest/articles/mr-bones-a-pirate-voiced-halloween-chatbot-powered-by-docker-model-runner-a5d717e8a2d70e65.md): Docker · 2025-10-31 · Medium · 6 min read · LLMs, Inference & serving, Speech & audio, AI safety
  A Home Depot animatronic skeleton becomes a pirate-voiced Halloween chatbot.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
