Xirsys × Grok Voice Think Fast 2.0

Use Grok Voice Agents on Xirsys

Stream natural speech to Grok over a browser-to-Node WebRTC link. Xirsys adds fresh STUN and TURN credentials so the session can keep moving through restrictive NATs and firewalls.

WebRTCBrowser → Node
XirsysSTUN + TURN
WebSocketNode → Grok

Live voice session

Think Fast 2.0 · eve

idle
ICE not connected Grok bridge offline
Required · BYOK

Used once to mint a short-lived xAI secret. Never stored, logged, or returned.

You

Your transcript appears here.

Grok

Grok’s reply appears here.

Connection diagnostics
Selected route
Not connected
Candidate path
No pair selected
Xirsys relay
Not in use

One voice session · three links

WebRTC at the edge. WebSocket at the model.

Grok’s speech-to-speech API speaks WebSocket, while the browser uses WebRTC for responsive, observable real-time transport. The Node relay bridges those protocols, and Xirsys gives WebRTC a TURN fallback when a NAT or firewall blocks the direct path. That matters because a voice agent that works on home Wi-Fi can otherwise fail on corporate, carrier, and other restrictive networks.

Build it in three moves

Use this sample application to quickly use Grok with your Xirsys account

Clone the sample, add server-only credentials, run one command, then inspect the selected ICE path in the live console.

Open the full README
  1. 01

    Configure the two providers

    Add your xAI, XIRSYS_IDENT, XIRSYS_SECRET, and XIRSYS_CHANNEL in the server environment.

  2. 02

    Mint short-lived credentials

    POST /api/bootstrap exchanges the standard xAI key for an ephemeral secret and requests fresh Xirsys ICE servers.

  3. 03

    Bridge the two transports

    The browser negotiates WebRTC with the Node peer. The relay opens xAI’s Realtime WebSocket pinned to grok-voice-think-fast-2.0.

Clone. Configure. Converse.

Get the SDK

Typed provider clients, a secure bootstrap exchange, selected-pair diagnostics, a forced-TURN test, deployment notes, and mocked checks are all included.

git clone https://github.com/xirsys/grok-voice-think-fast-2-xirsys.git Browse the repository