mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 06:17:41 +00:00
docs: note audio manager refactor and backward-compat tts alias
Update module map to list internal/audio/ (unified manager, TTS active, STT/Music/SFX stubbed/partial) and clarify internal/tts/ as a 24-symbol backward-compat alias layer. Add changelog entry for Phase 1.
This commit is contained in:
1 parent
b0b87da7cd
commit
b1b77597a9
2 files changed
+16
-1
No files matched your search
@@ -120,7 +120,8 @@ flowchart TD
|
||||
| `internal/permissions/` | RBAC policy engine (admin, operator, viewer roles) |
|
||||
| `internal/store/pg/pairing.go` | DM/device pairing service (8-character codes, database-backed) |
|
||||
| `internal/sandbox/` | Docker-based code execution sandbox |
|
||||
| `internal/tts/` | Text-to-Speech providers: OpenAI, ElevenLabs, Edge, MiniMax |
|
||||
| `internal/audio/` | Unified audio manager: 4 provider interfaces (TTS active; STT/Music/SFX stubbed/partial). Orchestrates ElevenLabs, OpenAI, Edge, MiniMax TTS providers. `internal/tts/` retained as backward-compat alias |
|
||||
| `internal/tts/` | Backward-compat alias layer (24 symbols) — all pre-refactor callers compile unchanged |
|
||||
| `internal/http/` | HTTP API handlers: /v1/chat/completions, /v1/agents, /v1/skills, /v1/traces, /v1/mcp, /v1/delegations, summoner |
|
||||
| `internal/crypto/` | AES-256-GCM encryption for API keys |
|
||||
| `internal/tracing/` | LLM call tracing (traces + spans), in-memory buffer with periodic store flush |
|
||||
|
||||
@@ -34,6 +34,20 @@ All notable changes to GoClaw Gateway are documented here. Format follows [Keep
|
||||
|
||||
### Added
|
||||
|
||||
#### ElevenLabs Audio Manager Refactor — Phase 1 (2026-04-14)
|
||||
|
||||
Unified audio provider management via new `internal/audio/` package with pluggable interface-based architecture. Phase 1 wires TTS providers (ElevenLabs, OpenAI, Edge, MiniMax); STT/Music/SFX interfaces defined for Phase 3-4.
|
||||
|
||||
**What changed:**
|
||||
- **`internal/audio/` package**: Central `Manager` orchestrates 4 provider kinds via interfaces (`TTSProvider`, `STTProvider`, `MusicProvider`, `SFXProvider`)
|
||||
- **Provider organization**: Implementations in `internal/audio/{elevenlabs,openai,edge,minimax}/`. ElevenLabs shared HTTP client (`xi-api-key` header) for both TTS and SFX subproviders
|
||||
- **`internal/tts/` → backward-compat alias**: 24-symbol package (15 types + 6 consts + 5 constructors + 5 signature guards). All pre-refactor callers compile unchanged, zero breaking changes
|
||||
- **Config extension**: `config.Audio` optional pointer (nil-safe) added for future STT/Music subsections. `cfg.Tts` retained unchanged
|
||||
- **ElevenLabs SFX tool**: `internal/tools/create_audio_elevenlabs.go` rewritten as thin shim calling `elevenlabs.NewSFXProvider(...).GenerateSFX(ctx, audio.SFXOptions{...})`
|
||||
- **WS `tts.*` namespace**: 6 methods unchanged externally
|
||||
|
||||
**Impact**: Existing TTS flows fully compatible. New code can import `internal/audio` directly. STT/Music/SFX wiring deferred to Phase 3-4.
|
||||
|
||||
#### Trace Stop/Abort Redesign — Cascading 4-Layer Fix (2026-04-14)
|
||||
|
||||
The Stop button on the traces page now reliably aborts running traces. Previous implementation had independent race conditions across HTTP streaming, agent router, trace persistence, and UI polling; this redesign fixes all four layers atomically.
|
||||
|
||||
Reference in new issue
Block a user