voice-latency
A per-hop latency budget for voice agents. It models two architectures, cascaded (STT then LLM then TTS) and realtime (one speech-to-speech model), adds framework overhead, and tells you where the milliseconds go.
The numbers are the point. Every figure lives in one Python file with a
source and a date, ours included. The seed values are Mahimai estimates; if
you have a stronger source (measured, ideally with a screenshot), open a PR and
cite it. That is how a latency benchmark stays honest.
⚠️ Disclaimer. These figures are Mahimai estimates, aggregated from public and community sources. They are not measurements of your system, and not vendor-published unless a
sourcesays so. They are approximate, they will drift as providers change, and they may simply be wrong. Use them to understand where a latency budget goes, not as a basis for SLAs, contracts, or purchasing decisions. The software and data are provided "as is", without warranty of any kind, and the maintainers accept no liability for any decision made using them. Verify against your own stack before you rely on a number.
This package powers the calculator at mahimai.ca/tools/latency-calculator; the site reads the same data, so the two never disagree.
Install
pip install voice-latency # or: uv pip install voice-latency
Use it
from voice_latency import estimate
# Cascaded pipeline (default)
e = estimate(stt="Deepgram Nova-3", llm="GPT-4o mini", tts="Cartesia Sonic",
transport="PSTN / SIP", endpointing=700, calls=25)
print(e.total_p50, e.total_p95) # 1326 1589
print(e.max_hop) # 'endp' (the endpointing delay you set)
# Realtime, speech-to-speech
r = estimate(mode="realtime", realtime="Gemini Live (Flash)",
framework="LiveKit Agents", transport="WebRTC")
for hop in r.rows:
print(f"{hop.label:<26} {hop.p50:>4}ms p95 {hop.p95}ms")
From the terminal:
voice-latency # default cascaded turn
voice-latency --mode realtime --realtime "OpenAI GPT Realtime"
voice-latency --framework "Google ADK (bidi streaming)" --transport WebRTC
voice-latency list # every provider it knows
voice-latency export --out data.json # the dataset as JSON
The model
A turn's latency is the sum of independent hops. The p50 total sums the per-hop p50s. Percentiles do not add, so the p95 total adds each hop's spread (p95 minus p50) in quadrature on top of the p50 total. Hops:
- cascaded: network in, jitter, STT, endpointing, LLM, TTS, network out
- realtime: network in, jitter, endpointing, speech-to-speech model, network out
- an orchestration framework, if any, adds one overhead hop
Constants (cross-region penalty, concurrency load, endpointing math, thresholds)
live in MODEL in src/voice_latency/data.py.
The data
All of it is in src/voice_latency/data.py: STT,
LLM, TTS, realtime speech-to-speech models, transport, and frameworks. Figures
are illustrative defaults unless a source says otherwise. They are not
vendor-published or independently benchmarked.
Improve them. See CONTRIBUTING.md. A PR that adds a source is worth more than a PR that just changes a number.
License
MIT.
Metadata
Release files for voice-latency 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| voice_latency-0.1.1.tar.gz | 11.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| voice_latency-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / voice_latency-0.1.1.tar.gz
| Download URL | voice_latency-0.1.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c95226bbdda8706e68418c1369b5126f1e9fe112550dc3fd1ec75abce29586a
|
|
BLAKE2b-256 checksum How to use checksums |
32245778e41b425dfa90b55070b73944cd2622d5d0c29f06fc0bea6fff51edf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logRelease files / voice_latency-0.1.1-py3-none-any.whl
| Download URL | voice_latency-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc077ce1a668c45286953d32ec655df1621a1f8b30b9de0a68ae2992d74ed3df
|
|
BLAKE2b-256 checksum How to use checksums |
3ad6bcdfebe97440fcc4385702736e729b07e020825dcdf5e0855b4cb57c5d82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency log