docs: phase 02 completion — voice/audio system docs + architecture updates

Update architecture overview with streaming TTS provider layer. Expand tools
system docs with voice/model resolution. Update HTTP and WebSocket RPC
documentation for voice endpoints. Record Phase 02 completion in changelog.
Update CLAUDE.md with voice picker and streaming TTS patterns.
This commit is contained in:
viettranx committed 2026-04-15 11:24:57 +07:00
1 parent a7c8170c4a
commit cf16cf53db
6 files changed
+181 -12

No files matched your search

+8 -1
View File
@@ -812,10 +812,17 @@ func (t *MyTool) Execute(ctx context.Context, params MyParams) (*Result, error)
#### tts (tenant override shape)
```json
{
"primary": "elevenlabs"
"primary": "elevenlabs",
"default_voice_id": "pMsXgVXv3BLzUgSXRplE",
"default_model": "eleven_flash_v2_5"
}
```
**Fields:**
- `primary`: Provider selection (elevenlabs, openai, edge, minimax)
- `default_voice_id`: Tenant-level voice ID fallback (ElevenLabs); overridable per-agent via `agent.other_config.tts_voice_id`
- `default_model`: Tenant-level model choice (eleven_v3, eleven_flash_v2_5, eleven_multilingual_v2, eleven_turbo_v2_5); overridable per-agent via `agent.other_config.tts_model_id`
**Secret vs non-secret split:**
- Non-secret (provider priorities, max_results, allowed_domains): `builtin_tool_tenant_configs.settings` (editable via UI)
- Secret (API keys): `config_secrets` table (encrypted, tenant-scoped)