Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Wires Grok realtime speech-to-speech voice into an existing app, replacing STT-LLM-TTS cascades or OpenAI Realtime, with ephemeral tokens.
30% 96%+65 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 7 of 23 without it.
3 of 3 safety checks passed
Not used yet
Add Grok Speech to Speech to an existing app. Run on /add-voice, typed Voice Mode, or clear “add Grok voice” intent.
Working duplex path: user-app mic in, audio out, wss://api.x.ai/v1/realtime?model=grok-voice-latest, safe auth. Cursor has no native mic; wire the app (or a sample client), not the IDE.
Language-agnostic event loop. TypeScript samples default. Short Python twins only where the client API differs (e.g. ws vs websockets).
Map the app
/v1/stt or /v1/tts only if the product still needs one-shot listen or speak outside the agent.Auth
XAI_API_KEY.POST https://api.x.ai/v1/realtime/client_secrets, client uses ephemeral token (Bearer or browser sec-websocket-protocol: xai-client-secret.<token>).Connect + session
wss://api.x.ai/v1/realtime?model=grok-voice-latestsession.update with voice (default eve), instructions, turn_detection: { type: "server_vad" } (or null for push-to-talk), PCM 24 kHz unless the app already standardizes elsewhere.audio.input.transcription.model: "grok-transcribe" or no user transcript arrives (conversation.item.input_audio_transcription.updated is cumulative, not a delta).web_search, x_search, file_search, mcp, custom function.Audio I/O (app-side)
AudioContext per session for capture and playback, created inside the user gesture (autoplay policy). Ask for 24 kHz; if the browser gives another rate, resample before sending.input_audio_buffer.append (or binary transport). Start WS and mic in parallel; buffer early audio, flush on open.response.output_audio.delta immediately; schedule with a ~150 ms lead so chunks butt together. On input_audio_buffer.speech_started, stop everything queued (barge-in).Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.