PolyVoice Live is a desktop application for live, bidirectional voice translation across VoIP apps. It combines an Electron shell, a React UI, a FastAPI backend, streaming audio routing, speech-to-text, translation, text-to-speech, and meeting intelligence tools.
- Captures microphone and system audio
- Detects speech and streams it to the backend
- Transcribes and translates in near real time
- Plays translated speech back through virtual audio devices
- Tracks meeting context, summaries, action items, and searchable history
- Supports demo, local development, Docker deployment, and benchmarking
- Python 3.12+
- Node.js 20+
uv- Docker and Docker Compose if you want containerized deployment
- Copy the example environment file:
cp .env.example .env- Start the full local stack:
bash scripts/run_local.shThis script:
- Creates
.envif it does not exist - Syncs backend dependencies with
uv - Installs frontend dependencies if needed
- Starts the FastAPI backend
- Starts the Vite renderer
- Starts the Electron build/watch processes
- Open the app:
- Frontend dev server:
http://127.0.0.1:5173 - Backend API:
http://127.0.0.1:8000
If you want to run each part yourself:
cd backend
uv sync --extra dev
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000cd frontend
npm install
npm run dev:rendererIn separate terminals:
cd frontend
npm run dev:electron:watchcd frontend
npm run dev:electron:runThe main settings live in .env.
Useful values:
POLYVOICE_API_PORT=8000VITE_API_BASE_URL=http://127.0.0.1:8000VITE_AUDIO_WS_URL=ws://127.0.0.1:8000/ws/audioPOLYVOICE_ENABLE_DEMO_MODE=true
Important runtime directories:
- Backend state:
backend/.state/ - Model files:
models/ - Local cache:
.cache/
Create a production desktop build:
cd frontend
npm run distIf macOS code signing gets in the way during local packaging, use the unsigned build:
cd frontend
npm run dist:unsignedThe frontend build output is written to frontend/release/.
Build and run the container stack:
docker compose -f docker/docker-compose.yml up --buildExposed services:
- Backend:
http://localhost:8000 - Frontend:
http://localhost:8080 - Prometheus:
http://localhost:9090 - Grafana:
http://localhost:3000 - Model server:
http://localhost:9000
cd backend
uv run --with pytest --with pytest-asyncio --with fastapi --with pydantic --with pydantic-settings --with reportlab pytestpython3 -m compileall backend/appcd frontend
npm run build:renderer
npm run build:electroncd frontend
npm run distRun the benchmark scripts from the repository root:
python scripts/benchmark/latency_benchmark.py
python scripts/benchmark/cpu_gpu_benchmark.py --mode cpu
python scripts/benchmark/stress_test.py
python scripts/benchmark/memory_profile.pybackend/: FastAPI backend and core servicesfrontend/: Electron + React desktop appdocker/: Dockerfiles, Compose files, and monitoring configsdocs/: architecture, deployment, quick start, and reference docsscripts/: local-run and benchmark scriptsmodels/: local model artifacts and assetstests/: repo-level tests and supporting fixtures
- If
uvis missing, install it before runningscripts/run_local.sh - If
npmis missing, install Node.js 20+ first - If the app opens but no audio routes, check your virtual audio devices in
.env - If Docker startup fails, confirm Docker Desktop or Docker Engine is running
- If Electron packaging fails on macOS, try
npm run dist:unsigned
- Architecture
- API
- Deployment
- AMD Optimization
- Benchmark Report
- Judge Guide
- Pitch Deck
- Quick Start
- Developer Guide
- Contribution Guide
- Troubleshooting
- FAQ
The app is designed to prefer AMD/ROCm where available, with fallbacks to other runtimes when needed.