Skip to content

fix(xai/minor): update Grok realtime voices to match xAI API#1240

Merged
toubatbrian merged 2 commits intomainfrom
pavel/xai-update-grok-voices
Apr 13, 2026
Merged

fix(xai/minor): update Grok realtime voices to match xAI API#1240
toubatbrian merged 2 commits intomainfrom
pavel/xai-update-grok-voices

Conversation

@Hormold
Copy link
Copy Markdown
Contributor

@Hormold Hormold commented Apr 13, 2026

Summary

  • The GrokVoices type in the xAI realtime plugin is stale: it lists Ara | Cora | Sage, but xAI now exposes five voices — eve, ara, rex, sal, leo — with lowercase names.
  • Aligns DEFAULT_VOICE casing to lowercase ('ara') to match the documented naming; same voice as before, just the correct case.

Source: xAI Voice Agent API — Available Voices

Notes

  • Users passing a custom voice string are unaffected (the voice option still accepts GrokVoices | string).
  • Default voice is still Ara; only the casing changes to match xAI's documentation.

The xAI Grok Voice Agent API supports five voices with lowercase
names: eve, ara, rex, sal, and leo. The plugin previously exposed a
stale list (Ara, Cora, Sage) and defaulted to 'Ara'. Update the
GrokVoices type to the current roster and switch the default to 'eve'
(the API's own default) so users calling `new RealtimeModel()` with no
voice override match the documented xAI behavior.

Ref: https://docs.x.ai/docs/guides/voice/agent
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 13, 2026

🦋 Changeset detected

Latest commit: 3312e3b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
@livekit/agents-plugin-xai Patch
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hedra Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugins-test Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Voice names are lowercase per xAI's docs, so align the default with
the existing behavior (Ara) rather than switching it to eve.

Ref: https://docs.x.ai/developers/model-capabilities/audio/voice-agent#available-voices
@Hormold Hormold requested a review from toubatbrian April 13, 2026 17:18
@Hormold Hormold changed the title fix(xai): update Grok realtime voices to match xAI API fix(xai/minor): update Grok realtime voices to match xAI API Apr 13, 2026
@toubatbrian toubatbrian merged commit 2e89dd9 into main Apr 13, 2026
8 checks passed
@toubatbrian toubatbrian deleted the pavel/xai-update-grok-voices branch April 13, 2026 22:50
@github-actions github-actions Bot mentioned this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants