You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0bcb4c9
Browse filesBrowse the repository at this point in the historyBrowse files
- Providers/Xiaomi: add MiMo TTS as a bundled speech provider with MP3/WAV output and voice-note Opus transcoding. Fixes #52376. (#55614) Thanks @zoujiejun.
55
55
- Providers/ElevenLabs: include `eleven_v3` in the bundled TTS model catalog so model selection surfaces can offer ElevenLabs v3. (#68321) Thanks @itsuzef.
56
56
- Providers/Local CLI TTS: add a bundled local command speech provider with file/stdout input, voice-note Opus conversion, and telephony PCM output. (#56239) Thanks @solar2ain.
57
+
- Providers/Inworld: add Inworld as a bundled speech provider with streaming TTS synthesis, voice listing, voice-note output, and PCM telephony output. (#55972) Thanks @cshape.
57
58
- Android/Talk Mode: expose Talk Mode in the Voice tab with runtime-owned voice capture modes and microphone foreground-service escalation. Thanks @alex-latitude.
58
59
- Providers/LiteLLM: register `litellm` as an image-generation provider so `image_generate model=litellm/...` calls and `agents.defaults.imageGenerationModel.fallbacks` entries resolve through the LiteLLM proxy. Thanks @zqchris.
59
60
- Codex harness: require Codex app-server `0.125.0` or newer and cover native MCP `PreToolUse`, `PostToolUse`, and `PermissionRequest` payloads through the OpenClaw hook relay.
|`apiKey`|`messages.tts.providers.inworld.apiKey`| Base64 dashboard credential. Falls back to `INWORLD_API_KEY`. |
69
+
|`baseUrl`|`messages.tts.providers.inworld.baseUrl`| Override Inworld API base URL (default `https://api.inworld.ai`). |
Copy file name to clipboardExpand all lines: docs/tools/tts.md
+41-4Lines changed: 41 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,15 @@ read_when:
7
7
title: "Text-to-speech"
8
8
---
9
9
10
-
OpenClaw can convert outbound replies into audio using ElevenLabs, Google Gemini, Gradium, 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, Vydra, xAI, or Xiaomi MiMo.
11
11
It works anywhere OpenClaw can send audio.
12
12
13
13
## Supported services
14
14
15
15
-**ElevenLabs** (primary or fallback provider)
16
16
-**Google Gemini** (primary or fallback provider; uses Gemini API TTS)
17
17
-**Gradium** (primary or fallback provider; supports voice-note and telephony output)
18
+
-**Inworld** (primary or fallback provider; uses the Inworld streaming TTS API)
18
19
-**Local CLI** (primary or fallback provider; runs a configured local TTS command)
19
20
-**Microsoft** (primary or fallback provider; current bundled implementation uses `node-edge-tts`)
20
21
-**MiniMax** (primary or fallback provider; uses the T2A v2 API)
@@ -38,11 +39,12 @@ or ElevenLabs.
38
39
39
40
## Optional keys
40
41
41
-
If you want OpenAI, ElevenLabs, Google Gemini, Gradium, MiniMax, Vydra, xAI, or Xiaomi MiMo:
42
+
If you want ElevenLabs, Google Gemini, Gradium, Inworld, MiniMax, OpenAI, Vydra, xAI, or Xiaomi MiMo:
42
43
43
44
-`ELEVENLABS_API_KEY` (or `XI_API_KEY`)
44
45
-`GEMINI_API_KEY` (or `GOOGLE_API_KEY`)
45
46
-`GRADIUM_API_KEY`
47
+
-`INWORLD_API_KEY`
46
48
-`MINIMAX_API_KEY`; MiniMax TTS also accepts Token Plan auth via
47
49
`MINIMAX_OAUTH_TOKEN`, `MINIMAX_CODE_PLAN_KEY`, or
48
50
`MINIMAX_CODING_API_KEY`
@@ -64,6 +66,7 @@ so that provider must also be authenticated if you enable summaries.
64
66
-[ElevenLabs Text to Speech](https://elevenlabs.io/docs/api-reference/text-to-speech)
The `apiKey` value must be the Base64-encoded credential string copied
246
+
verbatim from the Inworld dashboard (Workspace > API Keys). The provider
247
+
sends it as `Authorization: Basic <apiKey>` without any additional
248
+
encoding, so do not pass a raw bearer token and do not Base64-encode it
249
+
yourself. The key falls back to the `INWORLD_API_KEY` env var. See
250
+
[Inworld provider](/providers/inworld) for full setup.
251
+
220
252
### xAI primary
221
253
222
254
```json5
@@ -415,7 +447,7 @@ Then run:
415
447
-`tagged` only sends audio when the reply includes `[[tts:key=value]]` directives or a `[[tts:text]]...[[/tts:text]]` block.
416
448
-`enabled`: legacy toggle (doctor migrates this to `auto`).
417
449
-`mode`: `"final"` (default) or `"all"` (includes tool/block replies).
418
-
-`provider`: speech provider id such as `"elevenlabs"`, `"google"`, `"gradium"`, `"microsoft"`, `"minimax"`, `"openai"`, `"vydra"`, `"xai"`, or `"xiaomi"` (fallback is automatic).
450
+
-`provider`: speech provider id such as `"elevenlabs"`, `"google"`, `"gradium"`, `"inworld"`, `"microsoft"`, `"minimax"`, `"openai"`, `"vydra"`, `"xai"`, or `"xiaomi"` (fallback is automatic).
419
451
- If `provider` is **unset**, OpenClaw uses the first configured speech provider in registry auto-select order.
420
452
- Legacy `provider: "edge"` config is repaired by `openclaw doctor --fix` and
421
453
rewritten to `provider: "microsoft"`.
@@ -429,7 +461,7 @@ Then run:
429
461
-`maxTextLength`: hard cap for TTS input (chars). `/tts audio` fails if exceeded.
430
462
-`timeoutMs`: request timeout (ms).
431
463
-`prefsPath`: override the local prefs JSON path (provider/limit/summary).
432
-
-`apiKey` values fall back to env vars (`ELEVENLABS_API_KEY`/`XI_API_KEY`, `GEMINI_API_KEY`/`GOOGLE_API_KEY`, `GRADIUM_API_KEY`, `MINIMAX_API_KEY`, `OPENAI_API_KEY`, `VYDRA_API_KEY`, `XAI_API_KEY`, `XIAOMI_API_KEY`).
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`).
433
465
-`providers.elevenlabs.baseUrl`: override ElevenLabs API base URL.
434
466
-`providers.openai.baseUrl`: override the OpenAI TTS endpoint.
-`providers.tts-local-cli.timeoutMs`: command timeout in milliseconds (default `120000`).
454
486
-`providers.tts-local-cli.cwd`: optional command working directory.
455
487
-`providers.tts-local-cli.env`: optional string environment overrides for the command.
488
+
-`providers.inworld.baseUrl`: override Inworld API base URL (default `https://api.inworld.ai`).
-`providers.inworld.modelId`: Inworld TTS model (default `inworld-tts-1.5-max`; also supports `inworld-tts-1.5-mini`, `inworld-tts-1-max`, `inworld-tts-1`).
491
+
-`providers.inworld.temperature`: sampling temperature `0..2` (optional).
456
492
-`providers.google.model`: Gemini TTS model (default `gemini-3.1-flash-tts-preview`).
457
493
-`providers.google.voiceName`: Gemini prebuilt voice name (default `Kore`; `voice` is also accepted).
458
494
-`providers.google.audioProfile`: natural-language style prompt prepended before the spoken text.
@@ -586,6 +622,7 @@ These override `messages.tts.*` for that host.
586
622
with `ffmpeg`.
587
623
-**Google Gemini**: Gemini API TTS returns raw 24kHz PCM. OpenClaw wraps it as WAV for audio attachments, transcodes it to 48kHz Opus for voice-note targets, and returns PCM directly for Talk/telephony.
588
624
-**Gradium**: WAV for audio attachments, Opus for voice-note targets, and `ulaw_8000` at 8 kHz for telephony.
625
+
-**Inworld**: MP3 for normal audio attachments, native `OGG_OPUS` for voice-note targets, and raw `PCM` at 22050 Hz for Talk/telephony.
589
626
-**xAI**: MP3 by default; `responseFormat` may be `mp3`, `wav`, `pcm`, `mulaw`, or `alaw`. OpenClaw uses xAI's batch REST TTS endpoint and returns a complete audio attachment; xAI's streaming TTS WebSocket is not used by this provider path. Native Opus voice-note format is not supported by this path.
0 commit comments