From faa453a4098332e6bae92cc8791bd2f4d86ffbe3 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 2 Oct 2023 18:01:45 -0700 Subject: [PATCH] Troubleshoot `get_tts` compatible signature --- neon_minerva/integration/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neon_minerva/integration/text.py b/neon_minerva/integration/text.py index 8bb0e9e..724d58b 100644 --- a/neon_minerva/integration/text.py +++ b/neon_minerva/integration/text.py @@ -42,7 +42,7 @@ def __init__(self, prompts: List[str], lang: str = "en-us", bus_config: dict = N self.core_bus.run_in_thread() self.lang = lang self.test_audio = audio - self._tts = OVOSTTSFactory.create() + self._tts = OVOSTTSFactory.create() if audio else None self._prompts = prompts # TODO: Handle prompt metadata for longer timeouts self._intent_timeout = 30 self._speak_timeout = 60 @@ -127,7 +127,7 @@ def send_prompt(self, prompt: str): "username": "minerva"} if self.test_audio: _, file_path = mkstemp() - audio, _ = self._tts.get_tts(prompt, file_path, self.lang) + audio, _ = self._tts.get_tts(prompt, file_path, lang=self.lang) resp = self.core_bus.wait_for_response(Message("neon.audio_input", {"audio_data": encode_file_to_base64_string(file_path), "lang": self.lang}, context), timeout=30)