Repository navigation
Description
Summary
Add a focused text-to-speech capability for the Windows node via a new tts.speak command.
This should extract the useful text-to-speech slice from the broader voice work prototyped in #120, while deliberately avoiding microphone/STT, Talk Mode, wake word, overlay UI, and broader voice-mode state machine work.
Credit: #120 by @NichUK is the reference prototype/source of the initial Windows voice/TTS exploration.
Goals
- Add a standalone Windows node command:
tts.speak. - Support local Windows speech synthesis as the default provider.
- Support ElevenLabs as an optional cloud TTS provider.
- Expose settings to enable/disable TTS and configure provider/API key/voice/model.
- Register the capability for gateway node mode and local MCP only when enabled.
- Treat
tts.speakas privacy-sensitive / dangerous for Command Center and gateway allowlist purposes. - Document setup, allowlist requirements, and manual testing flow.
Proposed command shape
Command:
tts.speak
Arguments:
{
"text": "hello from OpenClaw",
"provider": "windows",
"voiceId": null,
"model": null,
"interrupt": false
}Response:
{
"spoken": true,
"provider": "windows",
"contentType": "audio/wav",
"durationMs": 2447
}Scope
In scope
- Shared, platform-neutral
TtsCapability. - Tray-side Windows speech synthesis playback.
- Optional ElevenLabs synthesis client.
- Settings persistence and Settings UI.
- DPAPI protection for stored ElevenLabs API keys.
- Gateway/node registration and local MCP description.
- Command Center dangerous-command classification.
- Gateway allowlist documentation.
- Text length guardrails and HTTP timeout for cloud TTS.
- Tests for capability behavior, settings, provider guardrails, Command Center grouping, and docs-adjacent command descriptions.
Out of scope
- Speech-to-text / microphone capture.
- Talk Mode loop.
- Wake word.
- Voice overlay or repeater UI.
- MiniMax provider.
- Streaming playback optimizations.
- Shared gateway voice-mode contract changes.
Security and privacy notes
tts.speak should be treated as privacy-sensitive because a remote caller can cause audio output on the user's machine. When ElevenLabs is selected, request text also leaves the device and can consume paid API quota.
The command should therefore require explicit gateway allowlisting:
openclaw config set gateway.nodes.allowCommands '["tts.speak"]'
openclaw gateway restartAcceptance criteria
- TTS is disabled by default.
- When enabled with provider
windows, invokingtts.speakspeaks text through Windows speech synthesis. - When provider
elevenlabsis selected, missing API key/voice configuration fails clearly. - ElevenLabs API key is protected at rest.
- Overly long requests are rejected before provider execution.
interrupt: trueinterrupts active playback and the interrupted request does not report false success.tts.speakappears as an allowed node command only after settings and gateway policy allow it.- Command Center classifies
tts.speakas dangerous/privacy-sensitive. - Mac parity diagnostics do not report
tts.speakas missing until Mac implements it. - Required build/tests pass:
./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
Manual validation notes
Validate manually with:
openclaw nodes invoke --node <windows-node-id> --command tts.speak --params '{"text":"hello from OpenClaw","provider":"windows"}'Observe successful response:
{
"ok": true,
"command": "tts.speak",
"payload": {
"spoken": true,
"provider": "windows",
"contentType": "audio/wav",
"durationMs": 2447
}
}Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
github-actions commentedon May 1, 2026
🤖 This is an automated response from Repo Assist.
Great scoping of the feature! Just a heads-up:
@RBridhas already opened PR #253 ("Add Windows node text-to-speech") which implements the full spec from this issue — including Windows speech synthesis, ElevenLabs provider, DPAPI key protection, the 5 000-char request guard, interrupt semantics, Command Center dangerous-command classification, and the required build/test validation.The PR body includes confirmed test results (1059 Shared / 252 Tray passing) and manual validation output.
Worth giving it a look to see if it matches the acceptance criteria here. 🎉