Files
goclaw/internal/audio/voices.go
T
viettranx daa5adb88b feat(audio): streaming TTS provider interface + voice cache + ElevenLabs models
Add StreamingTTSProvider interface for audio streaming support. Implement voice
caching with TTL+LRU. Add ElevenLabs model validation and voice list retrieval.
2026-04-15 11:24:56 +07:00

13 lines
547 B
Go

package audio
// Voice represents a single TTS voice as returned by a provider's voice-list
// endpoint (e.g. ElevenLabs GET /v1/voices). Kept provider-agnostic so HTTP/WS
// handlers can depend on the audio package without importing sub-providers.
type Voice struct {
ID string `json:"voice_id"`
Name string `json:"name"`
Labels map[string]string `json:"labels"`
PreviewURL string `json:"preview_url"`
Category string `json:"category"` // "premade" | "cloned" | "generated"
}