Vite + React + TypeScript app that starts a voice session and streams microphone audio to an agent over WebSocket, then plays back the agent audio and renders transcripts.
- Node.js (LTS)
npm installEdit src/CONSTS.ts:
AGENT_ID: agent id to connect toAPI_BASE_URL: HTTP endpoint used to start a session (returnswsUrl)
npm run devOpen the printed local URL in your browser and allow microphone access.
npm run buildnpm run previewBuild the image (from the project root where Dockerfile is):
docker build -t websocket-app .Run the container:
docker run --rm -p 8080:80 websocket-appOpen http://localhost:8080.