

























@@ -7,7 +7,7 @@ read_when:
77title: "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.
1111It 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
249254yourself. 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.
550599551600Available 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`
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。