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

推荐订阅源

博客园 - Franky
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
Y
Y Combinator Blog
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
博客园 - 司徒正美
I
InfoQ
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
U
Unit 42

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 speech-to-text support · openclaw/openclaw@...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -68,25 +68,27 @@ current image-capable Grok refs in the bundled catalog.

6868

The bundled plugin maps xAI's current public API surface onto OpenClaw's shared

6969

provider and tool contracts where the behavior fits cleanly.

707071-

| xAI capability | OpenClaw surface | Status |

72-

| -------------------------- | -------------------------------------- | ------------------------------------------------------------------- |

73-

| Chat / Responses | `xai/<model>` model provider | Yes |

74-

| Server-side web search | `web_search` provider `grok` | Yes |

75-

| Server-side X search | `x_search` tool | Yes |

76-

| Server-side code execution | `code_execution` tool | Yes |

77-

| Images | `image_generate` | Yes |

78-

| Videos | `video_generate` | Yes |

79-

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

80-

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

81-

| Speech-to-text || Not exposed yet; needs a transcription provider surface |

82-

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

83-

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

71+

| xAI capability | OpenClaw surface | Status |

72+

| -------------------------- | ----------------------------------------- | ------------------------------------------------------------------- |

73+

| Chat / Responses | `xai/<model>` model provider | Yes |

74+

| Server-side web search | `web_search` provider `grok` | Yes |

75+

| Server-side X search | `x_search` tool | Yes |

76+

| Server-side code execution | `code_execution` tool | Yes |

77+

| Images | `image_generate` | Yes |

78+

| Videos | `video_generate` | Yes |

79+

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

80+

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

81+

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

82+

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

83+

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

84+

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

84858586

<Note>

86-

OpenClaw uses xAI's REST image/video/TTS APIs for media generation and the

87-

Responses API for model, search, and code-execution tools. Features that need

88-

new OpenClaw contracts, such as streaming STT or Realtime voice sessions, are

89-

documented here as upstream capabilities rather than hidden plugin behavior.

87+

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.

9092

</Note>

91939294

### Fast-mode mappings

@@ -239,6 +241,50 @@ Legacy aliases still normalize to the canonical bundled ids:

239241240242

</Accordion>

241243244+

<Accordion title="Speech-to-text">

245+

The bundled `xai` plugin registers batch speech-to-text through OpenClaw's

246+

media-understanding transcription surface.

247+248+

- Default model: `grok-stt`

249+

- Endpoint: xAI REST `/v1/stt`

250+

- Input path: multipart audio file upload

251+

- Supported by OpenClaw wherever inbound audio transcription uses

252+

`tools.media.audio`, including Discord voice-channel segments and

253+

channel audio attachments

254+255+

To force xAI for inbound audio transcription:

256+257+

```json5

258+

{

259+

tools: {

260+

media: {

261+

audio: {

262+

models: [

263+

{

264+

type: "provider",

265+

provider: "xai",

266+

model: "grok-stt",

267+

},

268+

],

269+

},

270+

},

271+

},

272+

}

273+

```

274+275+

Language can be supplied through the shared audio media config or per-call

276+

transcription request. Prompt hints are accepted by the shared OpenClaw

277+

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

278+

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

279+280+

<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.

284+

</Note>

285+286+

</Accordion>

287+242288

<Accordion title="x_search configuration">

243289

The bundled xAI plugin exposes `x_search` as an OpenClaw tool for searching

244290

X (formerly Twitter) content via Grok.

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

316362

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

317363

normal xAI provider path because it requires a different upstream API

318364

surface than the standard OpenClaw xAI transport.

319-

- xAI STT and Realtime voice are not registered as OpenClaw providers yet.

320-

They require transcription/session contracts rather than the existing

321-

batch TTS provider shape.

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.

322368

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

323369

not exposed until the shared `image_generate` tool has corresponding

324370

cross-provider controls.

@@ -355,9 +401,10 @@ OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_TEST_QUIET=1 OPENCLAW_LIVE_IMAGE_GENERATION_P

355401

```

356402357403

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

358-

TTS, text-to-image generation, and reference-image editing. The shared image

359-

live file verifies the same xAI provider through OpenClaw's runtime selection,

360-

fallback, normalization, and media attachment path.

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.

361408362409

## Related

363410