Rate this page:

Grok Voice Agent API Client

Grok is a large language model developed by xAI that provides conversational AI with real-time knowledge, reasoning capabilities, and a distinctive, witty tone, designed for understanding and generating natural language across a wide range of tasks.

You can integrate the Grok Voice Agent API Client in your Voximplant application via the Grok VoxEngine module. It provides a client interface to communicate with the Grok models in real time and produce both audio and text transcriptions.

Usage

Copy URL
  1. Require the Modules.Grok module in your VoxEngine scenario.
  2. Create a Grok.voiceAgentAPIClient instance (via the Grok.createVoiceAgentAPIClient method) and provide your parameters.
  3. Send media between Call and Grok.voiceAgentAPIClient (via the *.sendMedia or VoxEngine.sendMediaBetween methods).
  4. Listen to the Grok.voiceAgentAPIClient events (via the Grok.VoiceAgentAPIEvents event list) and implement you application business logic.

Here is the complete scenario example for your reference:

Grok Voice Agent API Client

Grok Voice Agent API Client