fix(tts): correct tagged TTS syntax guidance (#65573)

This commit is contained in:
Marcus Castro
2026-04-12 19:41:13 -03:00
committed by GitHub
parent 48a7014e6b
commit 403783a3b1
2 changed files with 2 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ Then run:
- `auto`: autoTTS mode (`off`, `always`, `inbound`, `tagged`).
- `inbound` only sends audio after an inbound voice message.
- `tagged` only sends audio when the reply includes `[[tts]]` tags.
- `tagged` only sends audio when the reply includes `[[tts:key=value]]` directives or a `[[tts:text]]...[[/tts:text]]` block.
- `enabled`: legacy toggle (doctor migrates this to `auto`).
- `mode`: `"final"` (default) or `"all"` (includes tool/block replies).
- `provider`: speech provider id such as `"elevenlabs"`, `"microsoft"`, `"minimax"`, or `"openai"` (fallback is automatic).

View File

@@ -396,7 +396,7 @@ export function buildTtsSystemPromptHint(cfg: OpenClawConfig): string | undefine
autoMode === "inbound"
? "Only use TTS when the user's last message includes audio/voice."
: autoMode === "tagged"
? "Only use TTS when you include [[tts]] or [[tts:text]] tags."
? "Only use TTS when you include [[tts:key=value]] directives or a [[tts:text]]...[[/tts:text]] block."
: undefined;
return [
"Voice (TTS) is enabled.",