Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes to audio input handling #42

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions neon_iris/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def _build_message(self, msg_type: str, data: dict,
"ident": ident or str(time()),
"username": username,
"user_profiles": user_profiles,
"neon_should_respond": True,
"timing": {},
"mq": {"routing_key": self.uid,
"message_id": self.connection.create_unique_id()}
Expand Down
2 changes: 1 addition & 1 deletion neon_iris/web_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def on_user_input(self, utterance: str,
context={"gradio": {"session": gradio_id},
"timing": {"wait_in_queue": in_queue,
"gradio_sent": time()}})
chat_history.append((audio_input, None))
chat_history.append(((audio_input, None), None))
if not self._await_response.wait(30):
LOG.error("No response received after 30s")
self._await_response.set()
Expand Down
Loading