chore: Run pnpm format:fix.

This commit is contained in:
cpojer
2026-01-31 21:13:13 +09:00
parent dcc2de15a6
commit 8cab78abbc
624 changed files with 10729 additions and 7514 deletions

View File

@@ -32,6 +32,7 @@ does not publish limits, so assume similar or lower limits. citeturn0searc
## Optional keys
If you want OpenAI or ElevenLabs:
- `ELEVENLABS_API_KEY` (or `XI_API_KEY`)
- `OPENAI_API_KEY`
@@ -71,9 +72,9 @@ Full schema is in [Gateway configuration](/gateway/configuration).
messages: {
tts: {
auto: "always",
provider: "elevenlabs"
}
}
provider: "elevenlabs",
},
},
}
```
@@ -87,12 +88,12 @@ Full schema is in [Gateway configuration](/gateway/configuration).
provider: "openai",
summaryModel: "openai/gpt-4.1-mini",
modelOverrides: {
enabled: true
enabled: true,
},
openai: {
apiKey: "openai_api_key",
model: "gpt-4o-mini-tts",
voice: "alloy"
voice: "alloy",
},
elevenlabs: {
apiKey: "elevenlabs_api_key",
@@ -107,11 +108,11 @@ Full schema is in [Gateway configuration](/gateway/configuration).
similarityBoost: 0.75,
style: 0.0,
useSpeakerBoost: true,
speed: 1.0
}
}
}
}
speed: 1.0,
},
},
},
},
}
```
@@ -129,10 +130,10 @@ Full schema is in [Gateway configuration](/gateway/configuration).
lang: "en-US",
outputFormat: "audio-24khz-48kbitrate-mono-mp3",
rate: "+10%",
pitch: "-5%"
}
}
}
pitch: "-5%",
},
},
},
}
```
@@ -143,10 +144,10 @@ Full schema is in [Gateway configuration](/gateway/configuration).
messages: {
tts: {
edge: {
enabled: false
}
}
}
enabled: false,
},
},
},
}
```
@@ -159,9 +160,9 @@ Full schema is in [Gateway configuration](/gateway/configuration).
auto: "always",
maxTextLength: 4000,
timeoutMs: 30000,
prefsPath: "~/.openclaw/settings/tts.json"
}
}
prefsPath: "~/.openclaw/settings/tts.json",
},
},
}
```
@@ -171,9 +172,9 @@ Full schema is in [Gateway configuration](/gateway/configuration).
{
messages: {
tts: {
auto: "inbound"
}
}
auto: "inbound",
},
},
}
```
@@ -183,9 +184,9 @@ Full schema is in [Gateway configuration](/gateway/configuration).
{
messages: {
tts: {
auto: "always"
}
}
auto: "always",
},
},
}
```
@@ -250,6 +251,7 @@ Here you go.
```
Available directive keys (when enabled):
- `provider` (`openai` | `elevenlabs` | `edge`)
- `voice` (OpenAI voice) or `voiceId` (ElevenLabs)
- `model` (OpenAI TTS model or ElevenLabs model id)
@@ -265,10 +267,10 @@ Disable all model overrides:
messages: {
tts: {
modelOverrides: {
enabled: false
}
}
}
enabled: false,
},
},
},
}
```
@@ -281,10 +283,10 @@ Optional allowlist (disable specific overrides while keeping tags enabled):
modelOverrides: {
enabled: true,
allowProvider: false,
allowSeed: false
}
}
}
allowSeed: false,
},
},
},
}
```
@@ -295,6 +297,7 @@ Slash commands write local overrides to `prefsPath` (default:
`messages.tts.prefsPath`).
Stored fields:
- `enabled`
- `provider`
- `maxLength` (summary threshold; default 1500 chars)
@@ -321,6 +324,7 @@ OpenAI/ElevenLabs formats are fixed; Telegram expects Opus for voice-note UX.
## Auto-TTS behavior
When enabled, OpenClaw:
- skips TTS if the reply already contains media or a `MEDIA:` directive.
- skips very short replies (< 10 chars).
- summarizes long replies when enabled using `agents.defaults.model.primary` (or `summaryModel`).
@@ -366,6 +370,7 @@ Discord note: `/tts` is a built-in Discord command, so OpenClaw registers
```
Notes:
- Commands require an authorized sender (allowlist/owner rules still apply).
- `commands.text` or native command registration must be enabled.
- `off|always|inbound|tagged` are persession toggles (`/tts on` is an alias for `/tts always`).
@@ -381,6 +386,7 @@ Telegram sends a voice bubble.
## Gateway RPC
Gateway methods:
- `tts.status`
- `tts.enable`
- `tts.disable`