From 12efaceaf630fc0d6bbb3ef2f999b2aa2d3d85d8 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Thu, 19 Sep 2024 12:51:43 +0200 Subject: [PATCH] TR --- voice_recognition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voice_recognition.py b/voice_recognition.py index 6e14412..a1afd80 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -145,9 +145,9 @@ class Transcriber(commands.Cog): voice_client = self.bot.voice_clients[0] if not voice_client.is_connected(): logger.info("Connecting to voice") - vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient) + voice_client = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient) + voice_client.listen(self.wsink) logger.info("Connected") - vc.listen(self.wsink) @commands.command(name="stop_transcribe") async def stop(self, ctx):