Skip to content

Commit

Permalink
Troubleshoot get_tts compatible signature
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 3, 2023
1 parent ee966ec commit faa453a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neon_minerva/integration/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit faa453a

Please sign in to comment.