feat: Implement core voicebot functionality with TeamSpeak 3 and xAI integration.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user