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
- Require the
Modules.Grokmodule in your VoxEngine scenario. - Create a
Grok.voiceAgentAPIClientinstance (via theGrok.createVoiceAgentAPIClientmethod) and provide your parameters. - Send media between
CallandGrok.voiceAgentAPIClient(via the*.sendMediaorVoxEngine.sendMediaBetweenmethods). - Listen to the
Grok.voiceAgentAPIClientevents (via theGrok.VoiceAgentAPIEventsevent list) and implement you application business logic.
Here is the complete scenario example for your reference:
Grok Voice Agent API Client