feat: add xAI voice bot with Grok integration

- Add pkg/xai WebSocket client for xAI Voice Agent API
- Add cmd/voicebot TeamSpeak bot with voice bridge
- Proper 20ms audio timing with buffered queue
- Clear audio queue on user interruption (VAD)
This commit is contained in:
Jose Luis Montañes Ojados
2026-01-15 22:38:39 +01:00
parent 02318b1490
commit aa8c0dbcbc
7 changed files with 677 additions and 0 deletions

2
go.mod
View File

@@ -10,3 +10,5 @@ require (
)
require gopkg.in/hraban/opus.v2 v2.0.0-20230925203106-0188a62cb302
require github.com/gorilla/websocket v1.5.3 // indirect