gitwtfhub

wtf is voicegateway?

mahimailabs/voicegateway — explained in plain English

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

A self-hosted dashboard that tracks the real cost and quality of every voice AI call across speech-to-text, LLM, and text-to-speech.

Mindmap

mindmap
  root((VoiceGateway))
    What it does
      Cost tracking
      Quality monitoring
      Call replay
    Tech stack
      Python
      LiveKit Agents
      Local dashboard
    Use cases
      Cost reconciliation
      Multi tenant billing
      Latency monitoring
    Audience
      Developers
      Voice AI teams
    Safety
      PII detection
      Prompt injection guardrails
      Self hosted data

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Track exactly how much each voice AI call costs across speech-to-text, LLM, and text-to-speech providers.

REASON 2

Reconcile your recorded usage numbers against real provider invoices to catch billing surprises.

REASON 3

Monitor voice call quality metrics like latency, interruptions, and dead air across a live pipeline.

REASON 4

Bill different teams or clients separately using per-tenant cost attribution and scoped API keys.

What's in the stack?

PythonLiveKit Agents

How it stacks up

mahimailabs/voicegatewaya-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/54/53/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires a LiveKit Agents project already running before you swap in the import.

MIT license: free to use, modify, and reuse for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

VoiceGateway is a self-hosted observability and cost tracking layer for voice AI applications built on LiveKit Agents, a framework for building real-time voice bots. It acts as a drop-in replacement for one import, so you change a single line of code and immediately gain detailed visibility into what every voice call is costing you and how it is performing. Voice AI costs are unusually hard to track because three separate services each bill differently: speech-to-text charges by audio seconds, large language models charge by tokens, and text-to-speech charges by characters. VoiceGateway captures all three together and breaks every call down to a per-modality cost in cents. A reconcile command lets you compare your recorded numbers against actual provider invoices. Beyond cost, the dashboard tracks voice-specific quality metrics that text applications do not have: latency measurements across the speech-to-text-to-LLM-to-speech pipeline, interruption rates, dead air time, and talk-over. You can replay any past conversation and scrub through each chunk with timing and cost attached. For teams managing multiple clients or projects, it supports per-tenant cost attribution and virtual API keys scoped to specific teams. It also includes guardrails that can detect sensitive personal information or prompt injection attempts in real time during speech recognition. The whole system runs on your own infrastructure with no data leaving your stack. A local dashboard opens at port 9090. It supports 11 providers across cloud and local options for each modality. The project is released under the MIT license, so it can be used, modified, and reused freely, including for commercial purposes.

Yoink these prompts

Prompt 1
Help me swap my LiveKit Agents import for VoiceGateway with a single line change.
Prompt 2
Show me how to set up VoiceGateway's reconcile command to compare recorded costs against provider invoices.
Prompt 3
Explain how VoiceGateway breaks down per-call cost across speech-to-text, LLM, and text-to-speech.
Prompt 4
Write a config for VoiceGateway that scopes a virtual API key to one team for cost attribution.

Frequently asked questions

wtf is voicegateway?

A self-hosted dashboard that tracks the real cost and quality of every voice AI call across speech-to-text, LLM, and text-to-speech.

What language is voicegateway written in?

Mainly Python. The stack also includes Python, LiveKit Agents.

What license does voicegateway use?

MIT license: free to use, modify, and reuse for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is voicegateway to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is voicegateway for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.