惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
N
Netflix TechBlog - Medium
V
Visual Studio Blog
博客园 - Franky
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
量子位
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
V
V2EX
The Cloudflare Blog
月光博客
月光博客
Last Week in AI
Last Week in AI
雷峰网
雷峰网
WordPress大学
WordPress大学
博客园 - 【当耐特】
博客园 - 聂微东
IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat: add xai realtime transcription · openclaw/openclaw@...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -79,16 +79,17 @@ provider and tool contracts where the behavior fits cleanly.

7979

| Batch text-to-speech | `messages.tts.provider: "xai"` / `tts` | Yes |

8080

| Streaming TTS || Not exposed; OpenClaw's TTS contract returns complete audio buffers |

8181

| Batch speech-to-text | `tools.media.audio` / media understanding | Yes |

82-

| Streaming speech-to-text | | Not exposed; needs streaming transcription contract mapping |

82+

| Streaming speech-to-text | Voice Call `streaming.provider: "xai"` | Yes |

8383

| Realtime voice || Not exposed yet; different session/WebSocket contract |

8484

| Files / batches | Generic model API compatibility only | Not a first-class OpenClaw tool |

85858686

<Note>

8787

OpenClaw uses xAI's REST image/video/TTS/STT APIs for media generation,

88-

speech, and transcription, and the Responses API for model, search, and

89-

code-execution tools. Features that need new OpenClaw contracts, such as

90-

streaming STT or Realtime voice sessions, are documented here as upstream

91-

capabilities rather than hidden plugin behavior.

88+

speech, and batch transcription, xAI's streaming STT WebSocket for live

89+

voice-call transcription, and the Responses API for model, search, and

90+

code-execution tools. Features that need different OpenClaw contracts, such as

91+

Realtime voice sessions, are documented here as upstream capabilities rather

92+

than hidden plugin behavior.

9293

</Note>

93949495

### Fast-mode mappings

@@ -277,10 +278,54 @@ Legacy aliases still normalize to the canonical bundled ids:

277278

surface, but the xAI REST STT integration only forwards file, model, and

278279

language because those map cleanly to the current public xAI endpoint.

279280281+

</Accordion>

282+283+

<Accordion title="Streaming speech-to-text">

284+

The bundled `xai` plugin also registers a realtime transcription provider

285+

for live voice-call audio.

286+287+

- Endpoint: xAI WebSocket `wss://api.x.ai/v1/stt`

288+

- Default encoding: `mulaw`

289+

- Default sample rate: `8000`

290+

- Default endpointing: `800ms`

291+

- Interim transcripts: enabled by default

292+293+

Voice Call's Twilio media stream sends G.711 µ-law audio frames, so the

294+

xAI provider can forward those frames directly without transcoding:

295+296+

```json5

297+

{

298+

plugins: {

299+

entries: {

300+

"voice-call": {

301+

config: {

302+

streaming: {

303+

enabled: true,

304+

provider: "xai",

305+

providers: {

306+

xai: {

307+

apiKey: "${XAI_API_KEY}",

308+

endpointingMs: 800,

309+

language: "en",

310+

},

311+

},

312+

},

313+

},

314+

},

315+

},

316+

},

317+

}

318+

```

319+320+

Provider-owned config lives under

321+

`plugins.entries.voice-call.config.streaming.providers.xai`. Supported

322+

keys are `apiKey`, `baseUrl`, `sampleRate`, `encoding` (`pcm`, `mulaw`, or

323+

`alaw`), `interimResults`, `endpointingMs`, and `language`.

324+280325

<Note>

281-

xAI also offers streaming STT over `wss://api.x.ai/v1/stt`. OpenClaw's

282-

bundled xAI plugin does not expose that yet; the current provider is batch

283-

STT for file/segment transcription.

326+

This streaming provider is for Voice Call's realtime transcription path.

327+

Discord voice currently records short segments and uses the batch

328+

`tools.media.audio` transcription path instead.

284329

</Note>

285330286331

</Accordion>

@@ -362,9 +407,9 @@ Legacy aliases still normalize to the canonical bundled ids:

362407

- `grok-4.20-multi-agent-experimental-beta-0304` is not supported on the

363408

normal xAI provider path because it requires a different upstream API

364409

surface than the standard OpenClaw xAI transport.

365-

- xAI streaming STT and Realtime voice are not registered as OpenClaw

366-

providers yet. Batch xAI STT is registered through media understanding.

367-

Streaming STT and Realtime voice need WebSocket/session contract mapping.

410+

- xAI Realtime voice is not registered as an OpenClaw provider yet. It

411+

needs a different bidirectional voice session contract than batch STT or

412+

streaming transcription.

368413

- xAI image `quality`, image `mask`, and extra native-only aspect ratios are

369414

not exposed until the shared `image_generate` tool has corresponding

370415

cross-provider controls.

@@ -401,10 +446,10 @@ OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_TEST_QUIET=1 OPENCLAW_LIVE_IMAGE_GENERATION_P

401446

```

402447403448

The provider-specific live file synthesizes normal TTS, telephony-friendly PCM

404-

TTS, transcribes audio through xAI STT, generates text-to-image output, and

405-

edits a reference image. The shared image live file verifies the same xAI

406-

provider through OpenClaw's runtime selection, fallback, normalization, and

407-

media attachment path.

449+

TTS, transcribes audio through xAI batch STT, streams the same PCM through xAI

450+

realtime STT, generates text-to-image output, and edits a reference image. The

451+

shared image live file verifies the same xAI provider through OpenClaw's

452+

runtime selection, fallback, normalization, and media attachment path.

408453409454

## Related

410455