Retrieved article excerpt
Open article · Retrieved 2026-11-18T14:22:17.498624+00:00
# brisvox
[ci](https://github.com/bilal07karadeniz/brisvox/actions/workflows/ci.yml)
[crates.io](https://crates.io/crates/brisvox-server)
[PyPI](https://pypi.org/project/brisvox-agent/)
[npm](https://www.npmjs.com/package/@brisvox/agent)
[npm](https://www.npmjs.com/package/@brisvox/web)
[license](https://github.com/bilal07karadeniz/brisvox#license)
[website](https://brisvox.com)
[docs](https://bilal07karadeniz.github.io/brisvox/)
**A Rust engine for real-time voice agents: phone calls and browser sessions where a caller talks,
the agent listens, thinks (an LLM, with tools) and answers, and the caller can interrupt at any
moment. Open source, one process, hundreds of isolated calls per container.**
[brisvox architecture: callers reach one brisvox-server process through Twilio, Telnyx, SIP, WebRTC or WebSocket transports; each call is an isolated session running VAD and turn detection, STT, the LLM with tools and TTS, with an inference pool for the models; providers are cloud or local; your agent in Python or TypeScript holds the tools](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/architecture.svg)
[Website: brisvox.com](https://brisvox.com) · [Install](https://github.com/bilal07karadeniz/brisvox#install) · [Try it without keys](https://github.com/bilal07karadeniz/brisvox#try-it-without-keys) · [Quickstart](https://github.com/bilal07karadeniz/brisvox#quickstart) · [Comparison](https://github.com/bilal07karadeniz/brisvox#brisvox-vs-livekit-agents-vs-pipecat) ·
[Features](https://github.com/bilal07karadeniz/brisvox#features) · [For AI coding agents](https://github.com/bilal07karadeniz/brisvox#for-ai-coding-agents) ·
[Docs: the book](https://github.com/bilal07karadeniz/brisvox/blob/main/book/src/introduction.md) · [Discussions](https://github.com/bilal07karadeniz/brisvox/discussions) · [License](https://github.com/bilal07karadeniz/brisvox#license)
## Why brisvox
Built to beat Pipecat on three axes with the same speech and language providers: latency, density
and correctness.
- **Density.** Every call through each system's own provider client code (Deepgram live STT, an
OpenAI-compatible LLM and Deepgram Aura over TLS, against protocol-faithful fake servers) with the
real Silero VAD and Smart Turn models on every call: one 4 vCPU / 4 GB cloud container carried
**250 concurrent calls** within the latency SLO and **430** without a failed call or a lost turn,
against **1** and **10** for Pipecat 1.12.0. At 8 vCPU / 8 GB brisvox nearly doubled to **470**
and **780**; Pipecat stayed at **10**. At its maximum brisvox used about 1.8 MB of memory and
0.007 cores per call, Pipecat about 240 MB and 0.14 cores. Each call is an isolated session; a
panic or a provider failure in one cannot touch another.
- **Latency.** The engine's own added time is tens of microseconds per stage (0.089 ms at p95 from
end of turn to the LLM request, budget 3 ms). On real providers (Deepgram, OpenRouter pinned to
one upstream, Deepgram Aura voice), 5 concurrent calls, 100 turns per system, the median
voice-to-voice was **1.85 s against 1.97 s** for Pipecat and the p95 **2.88 s against 4.35 s**.
The STT final arrived earlier through brisvox (its `Finalize` runs at the VAD stop instead of
waiting for the provider's own endpointing; the two systems' timers are not measured from the
same point, so this is not a share of the gap); the LLM's first token took about the same time on
both. Pipecat sent more than one LLM request in 56 of 100 turns (mostly the first turn of a call),
which is where its tail comes from; the cause was not investigated (it is consistent with a turn
ended at a pause inside the utterance). An earlier run with Cartesia,
one call at a time and 30 turns, gave 1.69 s against 2.03 s. Connections
are prewarmed, the LLM can start speculatively, and the first clause of the answer goes to the
voice after one word.
- **Correctness.** Every user turn is a numbered epoch and stale frames are dropped everywhere;
after a barge-in the LLM context holds only the text that was actually played; side-effect tools
never run speculatively and never run twice for one call id (and an identical repeat in the
same turn is refused). The exact scope, and the idempotency key to add for "once per order,
ever", is in [`docs/TOOLS.md`](https://github.com/bilal07karadeniz/brisvox/blob/main/docs/TOOLS.md#what-never-twice-covers). All of it is proven by
deterministic, paused-clock simulation.
### Capacity
[Bar chart: concurrent calls within the latency SLO on AMD EPYC 9655P cloud containers, 4 vCPU / 4 GB: brisvox 250, Pipecat 1; 8 vCPU / 8 GB: brisvox 470, Pipecat 10](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/charts/capacity-cloud.svg)
The same SLO for both (p95 voice-to-voice at most 1110 ms: the fake providers' own 860 ms plus
250 ms), three runs each on a fresh container, one system at a time, on one CPU model (AMD EPYC
9655P; deployments the cloud placed on other CPUs were redeployed) with the container limits
checked in its own samples. On these cores a single Pipecat call already sits near the limit (p95
about 1.05 to 1.1 s at one call, about 200 ms above the providers' floor, against 10 to 30 ms for
brisvox), so its SLO number is decided by per-turn latency more than by load. The next chart drops
the latency limit and shows how many calls each system holds without failing:
[Bar chart: most concurrent calls without a failed call or a lost turn, 4 vCPU / 4 GB: brisvox 430, Pipecat 10; 8 vCPU / 8 GB: brisvox 780, Pipecat 10](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/charts/capacity-cloud-max.svg)
Pipecat (one worker process per vCPU, Silero and Smart Turn loaded in each) runs out of memory at
20 calls in 4 GB: workers are killed and their calls drop. With 8 GB it lost turns at 20 calls in
two of three runs (no response); the third held 20 and reached the 8 GB limit at 30, where calls
dropped. So the extra cores and memory did not raise its median. brisvox is bound by CPU: twice
the container gave about 1.9 times the calls.
[Bar chart: server memory at the maximum load, 4 vCPU / 4 GB: brisvox 753 MB at 430 calls, Pipecat 2.4 GB at 10 calls; 8 vCPU / 8 GB: brisvox 1.3 GB at 780 calls, Pipecat 3.3 GB at 10 calls](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/charts/memory-cloud.svg)
[Line chart: p50 and p95 voice-to-voice latency against concurrent calls at 8 vCPU / 8 GB; brisvox stays at the providers' floor up to about 480 calls, Pipecat crosses the SLO within 20 calls](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/charts/latency-vs-calls-cloud.svg)
Latency stays at the providers' floor until a system runs out of CPU or memory, then crosses the
SLO within a step or two: the number that matters is where that happens.
### Latency
[Grouped bar chart: voice-to-voice latency on real providers in English, median and p95, brisvox against Pipecat](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/charts/v2v-live.svg)
Both systems ran the same agent file against the same real providers and models (Deepgram nova-3,
OpenRouter `openai/gpt-6-luna` with reasoning effort `none`, pinned to OpenRouter's `openai`
upstream without fallbacks and checked on every response that streamed (Pipecat's cancelled
requests never reported one), Deepgram Aura `aura-2-thalia-en`), with 5
concurrent calls, 10 blocks of 10 turns per system, strictly alternating (b1 p1 b2 p2 ...), so both
saw the same provider conditions. The LLM provider's own variance is still as large as the median
difference (126 ms): the LLM first token is 931 ms for brisvox and 889 ms for Pipecat at p50. The
tail differs more than the median because Pipecat sent a second or third LLM request in about half
of the turns here (one call at a time it was 5 of 30). One setting is not equal: the same nominal
100 ms silence before the VAD stop is 3 Silero windows (96 ms) in Pipecat and 4 (128 ms) in
brisvox, so Pipecat decides about 32 ms earlier at every turn end (faster when the turn really
ended, and a candidate for its extra mid-utterance turn ends); the breakdown by stage, the routing
check, this mismatch and the
earlier Cartesia runs are in the "Live comparison with real providers" section of
[`docs/LATENCY.md`](https://github.com/bilal07karadeniz/brisvox/blob/main/docs/LATENCY.md).
[Dot plot on a log axis: the engine's own time per stage is 14 to 89 microseconds at p95, far below the budgets](https://github.com/bilal07karadeniz/brisvox/blob/main/assets/charts/engine-overhead.svg)
### How to read the numbers
- **Capacity and memory** are cloud runs of 2026-10-16/17: Linux containers on AMD EPYC 9655P
(Zen 5) limited to 4 vCPU / 4 GB and 8 vCPU / 8 GB, release builds, one system at a time. Every
call goes through each system's own provider clients (brisvox's Rust adapters; Pipecat's
`DeepgramSTTService`, `OpenAILLMService` and `DeepgramTTSService`) to fake providers that speak
the real Deepgram and OpenAI-compatible protocols over TLS with fixed latencies (STT final 150 ms
after 300 ms of endpointing, LLM first token 350 ms, TTS first audio 150 ms;
[`bench/fake_providers`](https://github.com/bilal07karadeniz/brisvox/blob/main/bench/fake_providers/README.md)), in a container of their own, like the
load generator. So the numbers include the provider client code, TLS and both models, not the
providers' own variance. The Pipecat side is `bench/pipecat_baseline`: a Pipecat 1.12.0 bot
speaking the same websocket protocol with the same agent file, measured by the same client with
the same definition of voice-to-voice. brisvox's admission control was off for the ramp; in
production it refuses calls past its capacity instead of degrading the running ones. LiveKit
Agents was not part of this run.
- **Memory is PSS** (proportional set size: a page shared by several processes is split between
them) summed over the server container's processes, from its cgroup samples every 2 s.
- The same comparison runs locally with `PROVIDERS=fakes MODELS=1 bench/capacity_linux.sh` (Docker
containers with the same limits). The Smart Turn model is memory-bandwidth heavy (about 200 MB of
memory traffic per analysis), so on a desktop with little memory bandwidth it can stop brisvox
from scaling with cores before the CPU does; the cloud host above does not.
- **Live voice-to-voice** is **Windows** on a shared development machine over the public internet,
one evening (100 turns per system, 5 concurrent calls, alternating blocks; Cartesia's plan allows
only 2 concurrent generations, hence the Aura voice); absolute numbers carry noise. **Engine overhead** is the Windows run over mocks.
- Every number is in a committed file under [`bench/results/`](https://github.com/bilal07karadeniz/brisvox/blob/main/bench/results/README.md) (the file
starts with the command that produced it); the charts are generated from those files by
`python3 scripts/gen_charts.py` and checked for staleness by the quality gate. Definitions and
more results (load simulation, speculation, Windows capacity): the book's
[Benchmark results](https://github.com/bilal07karadeniz/brisvox/blob/main/book/src/benchmarks.md) and [`docs/LATENCY.md`](https://github.com/bilal07karadeniz/brisvox/blob/main/docs/LATENCY.md).
## brisvox vs LiveKit Agents vs Pipecat
Two kinds of rows. **Measured** rows come from this repository's own benchmark harness (files named
in the last column; the table is generated from them); "not measured" means this repository has
no such run for that system yet. **Documented** rows are what each project's own documentation and
repository say, fetched 2026-10-14, not benchmarks; the bracketed tags are source ids listed in
[`docs/research/frameworks-2026-10-14.md`](https://github.com/bilal07karadeniz/brisvox/blob/main/docs/research/frameworks-2026-10-14.md), where every
fact carries its URL and what is inferred or not stated is marke