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