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

推荐订阅源

Martin Fowler
Martin Fowler
V
Visual Studio Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
B
Blog
I
InfoQ
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
H
Help Net Security
博客园 - Franky
宝玉的分享
宝玉的分享
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家

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(tts): add BytePlus Seed Speech provider · openclaw/o...
xuruiray · 2026-04-26 · via Recent Commits to openclaw:main

@@ -7,7 +7,7 @@ read_when:

77

title: "Text-to-speech"

88

---

9910-

OpenClaw can convert outbound replies into audio using ElevenLabs, Google Gemini, Gradium, Inworld, Local CLI, Microsoft, MiniMax, OpenAI, Vydra, xAI, or Xiaomi MiMo.

10+

OpenClaw can convert outbound replies into audio using ElevenLabs, Google Gemini, Gradium, Inworld, Local CLI, Microsoft, MiniMax, OpenAI, Volcengine, Vydra, xAI, or Xiaomi MiMo.

1111

It works anywhere OpenClaw can send audio.

12121313

## Supported services

@@ -20,6 +20,7 @@ It works anywhere OpenClaw can send audio.

2020

- **Microsoft** (primary or fallback provider; current bundled implementation uses `node-edge-tts`)

2121

- **MiniMax** (primary or fallback provider; uses the T2A v2 API)

2222

- **OpenAI** (primary or fallback provider; also used for summaries)

23+

- **Volcengine** (primary or fallback provider; uses the BytePlus Seed Speech HTTP API)

2324

- **Vydra** (primary or fallback provider; shared image, video, and speech provider)

2425

- **xAI** (primary or fallback provider; uses the xAI TTS API)

2526

- **Xiaomi MiMo** (primary or fallback provider; uses MiMo TTS through Xiaomi chat completions)

@@ -39,7 +40,7 @@ or ElevenLabs.

39404041

## Optional keys

414242-

If you want ElevenLabs, Google Gemini, Gradium, Inworld, MiniMax, OpenAI, Vydra, xAI, or Xiaomi MiMo:

43+

If you want ElevenLabs, Google Gemini, Gradium, Inworld, MiniMax, OpenAI, Volcengine, Vydra, xAI, or Xiaomi MiMo:

43444445

- `ELEVENLABS_API_KEY` (or `XI_API_KEY`)

4546

- `GEMINI_API_KEY` (or `GOOGLE_API_KEY`)

@@ -49,6 +50,9 @@ If you want ElevenLabs, Google Gemini, Gradium, Inworld, MiniMax, OpenAI, Vydra,

4950

`MINIMAX_OAUTH_TOKEN`, `MINIMAX_CODE_PLAN_KEY`, or

5051

`MINIMAX_CODING_API_KEY`

5152

- `OPENAI_API_KEY`

53+

- `VOLCENGINE_TTS_API_KEY` (or `BYTEPLUS_SEED_SPEECH_API_KEY`);

54+

legacy AppID/token auth also accepts `VOLCENGINE_TTS_APPID` and

55+

`VOLCENGINE_TTS_TOKEN`

5256

- `VYDRA_API_KEY`

5357

- `XAI_API_KEY`

5458

- `XIAOMI_API_KEY`

@@ -68,6 +72,7 @@ so that provider must also be authenticated if you enable summaries.

6872

- [Gradium](/providers/gradium)

6973

- [Inworld TTS API](https://docs.inworld.ai/tts/tts)

7074

- [MiniMax T2A v2 API](https://platform.minimaxi.com/document/T2A%20V2)

75+

- [Volcengine TTS HTTP API](/providers/volcengine#text-to-speech)

7176

- [Xiaomi MiMo speech synthesis](/providers/xiaomi#text-to-speech)

7277

- [node-edge-tts](https://github.com/SchneeHertz/node-edge-tts)

7378

- [Microsoft Speech output formats](https://learn.microsoft.com/azure/ai-services/speech-service/rest-text-to-speech#audio-outputs)

@@ -249,6 +254,35 @@ encoding, so do not pass a raw bearer token and do not Base64-encode it

249254

yourself. The key falls back to the `INWORLD_API_KEY` env var. See

250255

[Inworld provider](/providers/inworld) for full setup.

251256257+

### Volcengine primary

258+259+

```json5

260+

{

261+

messages: {

262+

tts: {

263+

auto: "always",

264+

provider: "volcengine",

265+

providers: {

266+

volcengine: {

267+

apiKey: "byteplus_seed_speech_api_key",

268+

resourceId: "seed-tts-1.0",

269+

voice: "en_female_anna_mars_bigtts",

270+

speedRatio: 1.0,

271+

},

272+

},

273+

},

274+

},

275+

}

276+

```

277+278+

Volcengine TTS uses the BytePlus Seed Speech API key from the Speech Console,

279+

not the OpenAI-compatible `VOLCANO_ENGINE_API_KEY` used for Doubao model

280+

providers. Resolution order is `messages.tts.providers.volcengine.apiKey` ->

281+

`VOLCENGINE_TTS_API_KEY` -> `BYTEPLUS_SEED_SPEECH_API_KEY`. Legacy AppID/token

282+

auth still works through `messages.tts.providers.volcengine.appId` / `token` or

283+

`VOLCENGINE_TTS_APPID` / `VOLCENGINE_TTS_TOKEN`. Voice-note targets request

284+

provider-native `ogg_opus`; normal audio-file targets request `mp3`.

285+252286

### xAI primary

253287254288

```json5

@@ -447,7 +481,7 @@ Then run:

447481

- `tagged` only sends audio when the reply includes `[[tts:key=value]]` directives or a `[[tts:text]]...[[/tts:text]]` block.

448482

- `enabled`: legacy toggle (doctor migrates this to `auto`).

449483

- `mode`: `"final"` (default) or `"all"` (includes tool/block replies).

450-

- `provider`: speech provider id such as `"elevenlabs"`, `"google"`, `"gradium"`, `"inworld"`, `"microsoft"`, `"minimax"`, `"openai"`, `"vydra"`, `"xai"`, or `"xiaomi"` (fallback is automatic).

484+

- `provider`: speech provider id such as `"elevenlabs"`, `"google"`, `"gradium"`, `"inworld"`, `"microsoft"`, `"minimax"`, `"openai"`, `"volcengine"`, `"vydra"`, `"xai"`, or `"xiaomi"` (fallback is automatic).

451485

- If `provider` is **unset**, OpenClaw uses the first configured speech provider in registry auto-select order.

452486

- Legacy `provider: "edge"` config is repaired by `openclaw doctor --fix` and

453487

rewritten to `provider: "microsoft"`.

@@ -461,7 +495,7 @@ Then run:

461495

- `maxTextLength`: hard cap for TTS input (chars). `/tts audio` fails if exceeded.

462496

- `timeoutMs`: request timeout (ms).

463497

- `prefsPath`: override the local prefs JSON path (provider/limit/summary).

464-

- `apiKey` values fall back to env vars (`ELEVENLABS_API_KEY`/`XI_API_KEY`, `GEMINI_API_KEY`/`GOOGLE_API_KEY`, `GRADIUM_API_KEY`, `INWORLD_API_KEY`, `MINIMAX_API_KEY`, `OPENAI_API_KEY`, `VYDRA_API_KEY`, `XAI_API_KEY`, `XIAOMI_API_KEY`).

498+

- `apiKey` values fall back to env vars (`ELEVENLABS_API_KEY`/`XI_API_KEY`, `GEMINI_API_KEY`/`GOOGLE_API_KEY`, `GRADIUM_API_KEY`, `INWORLD_API_KEY`, `MINIMAX_API_KEY`, `OPENAI_API_KEY`, `VYDRA_API_KEY`, `XAI_API_KEY`, `XIAOMI_API_KEY`). Volcengine uses `appId`/`token` instead.

465499

- `providers.elevenlabs.baseUrl`: override ElevenLabs API base URL.

466500

- `providers.openai.baseUrl`: override the OpenAI TTS endpoint.

467501

- Resolution order: `messages.tts.providers.openai.baseUrl` -> `OPENAI_TTS_BASE_URL` -> `https://api.openai.com/v1`

@@ -497,6 +531,21 @@ Then run:

497531

- If `messages.tts.providers.google.apiKey` is omitted, TTS can reuse `models.providers.google.apiKey` before env fallback.

498532

- `providers.gradium.baseUrl`: override Gradium API base URL (default `https://api.gradium.ai`).

499533

- `providers.gradium.voiceId`: Gradium voice identifier (default Emma, `YTpq7expH9539ERJ`).

534+

- `providers.volcengine.apiKey`: BytePlus Seed Speech API key (env:

535+

`VOLCENGINE_TTS_API_KEY` or `BYTEPLUS_SEED_SPEECH_API_KEY`).

536+

- `providers.volcengine.resourceId`: BytePlus Seed Speech resource id (default

537+

`seed-tts-1.0`, env: `VOLCENGINE_TTS_RESOURCE_ID`; use `seed-tts-2.0` when

538+

your BytePlus project has TTS 2.0 entitlement).

539+

- `providers.volcengine.appKey`: BytePlus Seed Speech app key header (default

540+

`aGjiRDfUWi`, env: `VOLCENGINE_TTS_APP_KEY`).

541+

- `providers.volcengine.baseUrl`: override the Seed Speech TTS HTTP endpoint

542+

(env: `VOLCENGINE_TTS_BASE_URL`).

543+

- `providers.volcengine.appId`: legacy Volcengine Speech Console application id (env: `VOLCENGINE_TTS_APPID`).

544+

- `providers.volcengine.token`: legacy Volcengine Speech Console access token (env: `VOLCENGINE_TTS_TOKEN`).

545+

- `providers.volcengine.cluster`: legacy Volcengine TTS cluster (default `volcano_tts`, env: `VOLCENGINE_TTS_CLUSTER`).

546+

- `providers.volcengine.voice`: voice type (default `en_female_anna_mars_bigtts`, env: `VOLCENGINE_TTS_VOICE`).

547+

- `providers.volcengine.speedRatio`: provider-native speed ratio.

548+

- `providers.volcengine.emotion`: provider-native emotion tag.

500549

- `providers.xai.apiKey`: xAI TTS API key (env: `XAI_API_KEY`).

501550

- `providers.xai.baseUrl`: override the xAI TTS base URL (default `https://api.x.ai/v1`, env: `XAI_BASE_URL`).

502551

- `providers.xai.voiceId`: xAI voice id (default `eve`; current live voices: `ara`, `eve`, `leo`, `rex`, `sal`, `una`).

@@ -550,12 +599,13 @@ Here you go.

550599551600

Available directive keys (when enabled):

552601553-

- `provider` (registered speech provider id, for example `openai`, `elevenlabs`, `google`, `gradium`, `minimax`, `microsoft`, `vydra`, `xai`, or `xiaomi`; requires `allowProvider: true`)

554-

- `voice` (OpenAI, Gradium, or Xiaomi voice), `voiceName` / `voice_name` / `google_voice` (Google voice), or `voiceId` (ElevenLabs / Gradium / MiniMax / xAI)

602+

- `provider` (registered speech provider id, for example `openai`, `elevenlabs`, `google`, `gradium`, `minimax`, `microsoft`, `volcengine`, `vydra`, `xai`, or `xiaomi`; requires `allowProvider: true`)

603+

- `voice` (OpenAI, Gradium, Volcengine, or Xiaomi voice), `voiceName` / `voice_name` / `google_voice` (Google voice), or `voiceId` (ElevenLabs / Gradium / MiniMax / xAI)

555604

- `model` (OpenAI TTS model, ElevenLabs model id, MiniMax model, or Xiaomi MiMo TTS model) or `google_model` (Google TTS model)

556605

- `stability`, `similarityBoost`, `style`, `speed`, `useSpeakerBoost`

557606

- `vol` / `volume` (MiniMax volume, 0-10)

558607

- `pitch` (MiniMax integer pitch, -12 to 12; fractional values are truncated before the MiniMax request)

608+

- `emotion` (Volcengine emotion tag)

559609

- `applyTextNormalization` (`auto|on|off`)

560610

- `languageCode` (ISO 639-1)

561611

- `seed`