feat: Implement core voicebot functionality with TeamSpeak 3 and xAI integration.

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-16 10:39:27 +01:00
parent aa8c0dbcbc
commit fb17813dcb
10 changed files with 460 additions and 287 deletions

View File

@@ -2,6 +2,7 @@ package client
import (
"log"
"sync"
"time"
"go-ts/pkg/protocol"
@@ -45,8 +46,9 @@ type Client struct {
Channels map[uint64]*Channel
// Audio
VoiceDecoders map[uint16]*opus.Decoder // Map VID (sender ID) to decoder
VoiceEncoder *opus.Encoder // Encoder for outgoing audio
VoiceDecoders map[uint16]*opus.Decoder // Map VID (sender ID) to decoder
VoiceEncoder *opus.Encoder // Encoder for outgoing audio
VoiceEncoderMu sync.Mutex // Protects VoiceEncoder
// Event handler for public API
eventHandler EventHandler