Local open-source P99 voice runtime (ASR → LLM → TTS over WebSocket)
Project description
p99-runtime
Local open-source voice runtime for the P99 protocol.
Speaks the same WebSocket contract as the hosted P99 runtime, so the browser
client (@p99labs/voice) works unchanged.
Quick start
pip install p99-runtime
p99-runtime serve --port 8787
Stub mode works with zero models — useful to verify the client pipeline
(mic → WS → PCM playback). To run real models, replace handle_turn in
p99_runtime/server.py with your ASR → LLM → TTS (or S2S) stack; keep the
protocol
events and the client stays unchanged.
Endpoints
| Path | Description |
|---|---|
GET /healthz |
Liveness |
GET /config |
Mic/TTS sample rates for the client |
WS /ws |
Voice session (JSON control + binary PCM) |
The server binds 127.0.0.1 by default. Pass --host 0.0.0.0 only when
you have TLS and auth in front (see
self-host notes).
Tests
pip install -e '.[dev]' # from the repo's runtime/ directory
pytest
Hosted runtime (coming soon)
P99 will offer a managed GPU runtime speaking this same protocol — swap the URL, add an API key, no client changes. Watch the repo for availability.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file p99_runtime-0.1.0.tar.gz.
File metadata
- Download URL: p99_runtime-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6d348b677d54ee4179029946eea4ab59b3b2ae8741e446587a819d53393634c
|
|
| MD5 |
7e673245f13c90d0ecef3d89154c540e
|
|
| BLAKE2b-256 |
86a7381059d1889cd7543002089806ee6c8ac6763c60bee1d0a52f2a8218f695
|
File details
Details for the file p99_runtime-0.1.0-py3-none-any.whl.
File metadata
- Download URL: p99_runtime-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c0ebee379da0a1093eb4ec4f3fe0d8794a58f9b1a4d882bb08d0cd84e77405a
|
|
| MD5 |
f694bfb290cd346dc142438a93279b6c
|
|
| BLAKE2b-256 |
2d2715a305e42034a42f4d224d5f0829cd3380074e302aae3ae9b60921897532
|