fix: Opus review pass — harden before building
- Widen voice ID validation to 20-64 alphanumeric (future-proof) - Remove hardcoded default voiceId (SJ personal clone) - Require voiceId in isConfigured + synthesize guard with clear error - Add model header comment explaining Fish Audio's non-standard API - Truncate error bodies to 500 chars to prevent log pollution - Update tests and README to match
This commit is contained in:
@@ -44,7 +44,7 @@ In your `openclaw.json`:
|
||||
| Field | Type | Default | Description |
|
||||
|-------|------|---------|-------------|
|
||||
| `apiKey` | string | — | **Required.** Fish Audio API key |
|
||||
| `voiceId` | string | `8a2d42...` | Reference ID of the voice to use |
|
||||
| `voiceId` | string | — | **Required.** Reference ID of the voice to use |
|
||||
| `model` | string | `s2-pro` | TTS model (`s2-pro`, `s1`, `s2`) |
|
||||
| `latency` | string | `normal` | Latency mode (`normal`, `balanced`, `low`) |
|
||||
| `speed` | number | — | Prosody speed (0.5–2.0) |
|
||||
|
||||
Reference in New Issue
Block a user