From 064bbe34bad8a2adfc23fec2cd15c5ccc087dada Mon Sep 17 00:00:00 2001 From: tanvithakur <54823948+tanvithakur94@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:03:26 -0700 Subject: [PATCH 1/2] Update audio_handler.py --- openai_realtime_client/handlers/audio_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openai_realtime_client/handlers/audio_handler.py b/openai_realtime_client/handlers/audio_handler.py index 6126497..d7bef72 100644 --- a/openai_realtime_client/handlers/audio_handler.py +++ b/openai_realtime_client/handlers/audio_handler.py @@ -54,7 +54,7 @@ def __init__(self): # Playback params self.playback_stream = None - self.playback_buffer = queue.Queue(maxsize=20) + self.playback_buffer = queue.Queue(maxsize=1024) self.playback_event = threading.Event() self.playback_thread = None self.stop_playback = False @@ -239,4 +239,4 @@ def cleanup(self): self.stream.stop_stream() self.stream.close() - self.audio.terminate() \ No newline at end of file + self.audio.terminate() From bb7347d37ac1edc02bfabe91ec5da7d97c652e5f Mon Sep 17 00:00:00 2001 From: tanvithakur <54823948+tanvithakur94@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:09:49 -0700 Subject: [PATCH 2/2] Update realtime_client.py --- openai_realtime_client/client/realtime_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openai_realtime_client/client/realtime_client.py b/openai_realtime_client/client/realtime_client.py index c62a5ec..831324e 100644 --- a/openai_realtime_client/client/realtime_client.py +++ b/openai_realtime_client/client/realtime_client.py @@ -78,7 +78,7 @@ def __init__( self.tools: List[AsyncBaseTool] = tools # Track current response state - self._current_response_idcurrent_response_id = None + self._current_response_id = None self._current_item_id = None self._is_responding = False