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()