From a1cfa1852e2eb52fad3ed8db57c52706fccc71d5 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Fri, 20 Sep 2024 16:49:41 +0200 Subject: [PATCH] Test --- voice_recognition.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/voice_recognition.py b/voice_recognition.py index a53c63c..5e1ad23 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -107,7 +107,8 @@ class SRBuffer(voice_recv.AudioSink): self.wavewriter[str(user.id)][0].writeframes(data.pcm) self.wavewriter[str(user.id)][1] = time.time_ns() #time from last write self.wavewriter[str(user.id)][3] = True #data written in last iter - self.wavewriter[str(user.id)][4] = True #data in buffer + self.wavewriter[str(user.id)][4] = True #data in buff + time.sleep(0.001) def cleanup(self) -> None: try: @@ -188,7 +189,7 @@ class Transcriber(commands.Cog): async def stop(self, ctx): self.check_data.stop() stop_token = CommunicationObject("STOP",None,None) - logger.info("Item added to queue %s %s", self.queue, stop_token) + logger.info("Item added to queue %s %s", self.comm_queue, stop_token) self.comm_queue.put(stop_token) await ctx.voice_client.disconnect()