Server-side Python SDK for Vox-hosted WebRTC sessions.
Project description
vox-rtc-server
Trusted Python SDK for Vox-hosted WebRTC conversations. It creates sessions over HTTP and controls them over PondSocket.
Install
pip install vox-rtc-server
Pass api_key=... or set VOX_API_KEY.
PondSocket session
import asyncio
import os
from vox_rtc_server import ClientEventEnvelope, SessionConfig, VoxRtcServerClient
async def main() -> None:
client = VoxRtcServerClient(
http_base="http://vox-service.vox.svc.cluster.local:11435",
api_key=os.environ.get("VOX_API_KEY"),
)
bootstrap, session = await client.create_controlled_session()
session.on_transcript(lambda event: print("user said:", event.transcript))
session.on_browser_event(lambda event: print(event.event, event.payload))
session.configure(SessionConfig(
stt_model="parakeet-stt:tdt-0.6b-v3",
tts_model="kokoro-tts:v1.0",
voice="af_heart",
turn_profile="browser_default",
))
session.send_text_response("Hello from Python.")
session.send_client_event(ClientEventEnvelope(event="render.ready", payload=True))
print("session:", bootstrap.session_id)
asyncio.run(main())
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
vox_rtc_server-0.2.0.tar.gz
(40.0 kB
view details)
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 vox_rtc_server-0.2.0.tar.gz.
File metadata
- Download URL: vox_rtc_server-0.2.0.tar.gz
- Upload date:
- Size: 40.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81ca54f953dcbb2bad360af65664b81645dc690e4c9b1f244e310edef9f394ca
|
|
| MD5 |
184bbd95a193d7839afe90c0429f14d0
|
|
| BLAKE2b-256 |
305329413a58286b62031027c942139944508f60c1df73f1bafff5eeca13792e
|
File details
Details for the file vox_rtc_server-0.2.0-py3-none-any.whl.
File metadata
- Download URL: vox_rtc_server-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed01ebfa64f7d6ed08f4257a9657b5479e7c3b9760b5e5f3216a51fb3de7f5e
|
|
| MD5 |
95dfe18d08eead5dba810dd33e967d31
|
|
| BLAKE2b-256 |
fe9bd9d19d5427a75899f18ce1c56f3b548db8370c3d783400d81b5cececa157
|