feat(pheby): add authenticated GPT-Live voice setup

Use Hermes to exchange WebRTC offers for the connector profile. Keep cancellation acknowledgments private and guard replacement runs against stale delivery.
This commit is contained in:
Chris Mendoza
2026-11-20 12:36:28 -05:00
parent 3bfb300a2f
commit 49b180922d
8 changed files with 462 additions and 72 deletions
+10
View File
@@ -144,6 +144,7 @@ pheby.example.com {
# WebSocket + API
reverse_proxy /ws 127.0.0.1:8620
reverse_proxy /attachments/* 127.0.0.1:8620
reverse_proxy /voice-live/* 127.0.0.1:8620
reverse_proxy /health 127.0.0.1:8620
# Optionally restrict by source when on a public VPS:
@@ -210,6 +211,15 @@ Notes:
---
## GPT-Live Voice Mode
Voice Mode uses the installed Hermes `tools.voice_live` helper for the same
gateway profile that owns Pheby. Configure an OpenAI key for that profile
(`OPENAI_API_KEY` or `voice.gpt_live.api_key`). The connector authenticates
call setup with the Pheby secret and gives the app an SDP answer. Android
exchanges audio with OpenAI over WebRTC and submits delegated turns through
the existing chat connection.
## Debugging & logging
Set `PHEBY_DEBUG=true` (env) or `extra.debug: true` (YAML) for verbose