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

@@ -117,6 +117,10 @@ func (c *Client) SendVoice(pcm []int16) error {
channels := 1
codec := uint8(CodecOpusVoice)
// Protect shared encoder
c.VoiceEncoderMu.Lock()
defer c.VoiceEncoderMu.Unlock()
// Get or Create Encoder
if c.VoiceEncoder == nil {
var err error