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 e0a5e6a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tts): add Inworld as built-in speech provider
Registers a new bundled speech plugin at extensions/inworld/ that follows the
openclaw/plugin-sdk/* contract: the plugin entry registers an Inworld
SpeechProviderPlugin via api.registerSpeechProvider, and the manifest declares
the speechProviders contract with enabledByDefault=true so core picks it up
through normal plugin discovery.
Provider covers MP3 output, OGG_OPUS voice-notes, PCM telephony, listVoices,
and API-key resolution via messages.tts.providers.inworld.apiKey or
INWORLD_API_KEY. Uses the shared openclaw/plugin-sdk/speech coerce helpers to
stay consistent with the OpenAI and ElevenLabs bundled providers.
Docs, .env.example, and the Unreleased changelog are updated; no core
src/tts, src/config, or src/secrets edits are needed under the current
plugin-owned pattern.
- 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.
Copy file name to clipboardExpand all lines: docs/tools/tts.md
+37-4Lines changed: 37 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)
Inworld authenticates with HTTP Basic using a single Base64-encoded credential
246
+
string taken from the Inworld dashboard. The provider reads the key from
247
+
`messages.tts.providers.inworld.apiKey` or the `INWORLD_API_KEY` env var.
248
+
220
249
### xAI primary
221
250
222
251
```json5
@@ -415,7 +444,7 @@ Then run:
415
444
-`tagged` only sends audio when the reply includes `[[tts:key=value]]` directives or a `[[tts:text]]...[[/tts:text]]` block.
416
445
-`enabled`: legacy toggle (doctor migrates this to `auto`).
417
446
-`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).
447
+
-`provider`: speech provider id such as `"elevenlabs"`, `"google"`, `"gradium"`, `"inworld"`, `"microsoft"`, `"minimax"`, `"openai"`, `"vydra"`, `"xai"`, or `"xiaomi"` (fallback is automatic).
419
448
- If `provider` is **unset**, OpenClaw uses the first configured speech provider in registry auto-select order.
420
449
- Legacy `provider: "edge"` config is repaired by `openclaw doctor --fix` and
421
450
rewritten to `provider: "microsoft"`.
@@ -429,7 +458,7 @@ Then run:
429
458
-`maxTextLength`: hard cap for TTS input (chars). `/tts audio` fails if exceeded.
430
459
-`timeoutMs`: request timeout (ms).
431
460
-`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`).
461
+
-`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
462
-`providers.elevenlabs.baseUrl`: override ElevenLabs API base URL.
434
463
-`providers.openai.baseUrl`: override the OpenAI TTS endpoint.
-`providers.tts-local-cli.timeoutMs`: command timeout in milliseconds (default `120000`).
454
483
-`providers.tts-local-cli.cwd`: optional command working directory.
455
484
-`providers.tts-local-cli.env`: optional string environment overrides for the command.
485
+
-`providers.inworld.baseUrl`: override Inworld API base URL (default `https://api.inworld.ai`).
0 commit comments