From b78f5427789ddc7cfd5d14210007f90b80f50f3f Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Fri, 20 Sep 2024 13:36:00 +0200 Subject: [PATCH] 1 --- voice_recognition.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/voice_recognition.py b/voice_recognition.py index fed0e30..b9655f8 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -216,15 +216,18 @@ async def transcribe_output_queue(): logger.info("PING") async def setup(bot): logger = logging.getLogger("discord") - logger.info("Started comms") + logger.info("Loading voice transcribed module phase one") threads = [] - #threads.append(threading.Thread(target=flask_debug)) threads.append(threading.Thread(target=transcribe_output_queue)) + logger.info("Loading voice transcribed phase two") for worker in threads: worker.start() + logger.info("Loading voice transcribed module phase three") + for worker in threads: worker.join() + logger.info("Loading voice transcribed module phase four") await bot.add_cog(Transcriber(bot))