From 12b304f34cb8ae08f9dfa28a79cd28396ea655a1 Mon Sep 17 00:00:00 2001 From: Kaan Meralan Date: Sun, 3 Nov 2024 19:14:58 -0800 Subject: [PATCH] use clear_result in logs instead of undefined meta_result --- deepgram/clients/speak/v1/websocket/async_client.py | 2 +- deepgram/clients/speak/v1/websocket/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deepgram/clients/speak/v1/websocket/async_client.py b/deepgram/clients/speak/v1/websocket/async_client.py index b7965c69..c69debcf 100644 --- a/deepgram/clients/speak/v1/websocket/async_client.py +++ b/deepgram/clients/speak/v1/websocket/async_client.py @@ -328,7 +328,7 @@ async def _process_text(self, message: Union[str, bytes]) -> None: ) case SpeakWebSocketEvents.Cleared: clear_result: ClearedResponse = ClearedResponse.from_json(message) - self._logger.verbose("ClearedResponse: %s", meta_result) + self._logger.verbose("ClearedResponse: %s", clear_result) await self._emit( SpeakWebSocketEvents(SpeakWebSocketEvents.Cleared), cleared=clear_result, diff --git a/deepgram/clients/speak/v1/websocket/client.py b/deepgram/clients/speak/v1/websocket/client.py index 05580bfa..d14c3603 100644 --- a/deepgram/clients/speak/v1/websocket/client.py +++ b/deepgram/clients/speak/v1/websocket/client.py @@ -326,7 +326,7 @@ def _process_text(self, message: str) -> None: ) case SpeakWebSocketEvents.Cleared: clear_result: ClearedResponse = ClearedResponse.from_json(message) - self._logger.verbose("ClearedResponse: %s", meta_result) + self._logger.verbose("ClearedResponse: %s", clear_result) self._emit( SpeakWebSocketEvents(SpeakWebSocketEvents.Cleared), cleared=clear_result,