feat: add FastAPI token server to pipecat-agent

Adds a lightweight HTTP token server (port 8080) alongside the voice
pipeline so web clients can obtain LiveKit access tokens without a
separate service. Adds fastapi and uvicorn to requirements. Adds
LIVEKIT_PUBLIC_URL env var (wss://voice.hobbs.farm) to docker-compose
so tokens carry the correct public WebSocket URL for browser clients.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-01 01:26:07 -05:00
parent 59856bd4fc
commit 68c3731c65
3 changed files with 59 additions and 8 deletions
+2
View File
@@ -1,4 +1,6 @@
pipecat-ai[livekit,silero,openai]==0.0.48
fastapi==0.115.0
uvicorn[standard]==0.30.0
anthropic==0.34.0
faster-whisper==1.0.3
requests==2.32.3