Skip to content

Commit

Permalink
Fix typo in audio input tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 3, 2023
1 parent faa453a commit 75f7819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_minerva/integration/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def send_prompt(self, prompt: str):
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)
if prompt not in resp.data['utterances']:
LOG.info(resp.data)
if prompt not in resp.data['transcripts']:
raise RuntimeError(f"Invalid transcription for '{prompt}': {resp.data['utterances']}")
else:
self.core_bus.emit(Message("recognizer_loop:utterance",
Expand Down

0 comments on commit 75f7819

Please sign in to comment.