From d9270ef8cf421de12998a0d275b772e9a19689f4 Mon Sep 17 00:00:00 2001 From: Ben Xu Date: Tue, 18 Jun 2024 12:26:48 -0700 Subject: [PATCH] merge async_interpreter from temp-branch --- software/source/server/async_interpreter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/source/server/async_interpreter.py b/software/source/server/async_interpreter.py index a57a35e..39303d2 100644 --- a/software/source/server/async_interpreter.py +++ b/software/source/server/async_interpreter.py @@ -32,7 +32,7 @@ class AsyncInterpreter: self.stt = AudioToTextRecorder( model="tiny.en", spinner=False, use_microphone=False ) - self.stt.stop() + self.stt.stop() # It needs this for some reason # TTS if self.interpreter.tts == "coqui": @@ -103,7 +103,7 @@ class AsyncInterpreter: # print("ADDING TO QUEUE:", chunk) asyncio.create_task(self._add_to_queue(self._output_queue, chunk)) - def generate(self, message): + def generate(self, message, start_interpreter): last_lmc_start_flag = self._last_lmc_start_flag self.interpreter.messages = self.active_chat_messages