merge async_interpreter from temp-branch

This commit is contained in:
Ben Xu 2024-06-18 12:26:48 -07:00
parent 0f5c75ca1f
commit d9270ef8cf
1 changed files with 2 additions and 2 deletions

View File

@ -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