Skip to content

Commit 2e89dd9

Browse files
authored
fix(xai/minor): update Grok realtime voices to match xAI API (#1240)
1 parent 382849b commit 2e89dd9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/agents-plugin-xai': patch
3+
---
4+
5+
update Grok realtime voices to match xAI API (eve, ara, rex, sal, leo); default voice is now lowercase `ara`

plugins/xai/src/realtime/realtime_model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type OpenAIRealtimeModelOptions = ConstructorParameters<typeof OpenAIRealtimeMod
88

99
const XAI_BASE_URL = 'wss://api.x.ai/v1';
1010
const DEFAULT_MODEL = 'grok-4-1-fast-non-reasoning';
11-
const DEFAULT_VOICE = 'Ara';
11+
const DEFAULT_VOICE = 'ara';
1212

1313
const XAI_DEFAULT_TURN_DETECTION = {
1414
type: 'server_vad' as const,
@@ -19,7 +19,7 @@ const XAI_DEFAULT_TURN_DETECTION = {
1919
interrupt_response: true,
2020
};
2121

22-
export type GrokVoices = 'Ara' | 'Cora' | 'Sage';
22+
export type GrokVoices = 'eve' | 'ara' | 'rex' | 'sal' | 'leo';
2323

2424
export interface RealtimeModelOptions extends Omit<OpenAIRealtimeModelOptions, 'model'> {
2525
model?: string;

0 commit comments

Comments
 (0)