diff --git a/deepgram/client.py b/deepgram/client.py index 834dbd27..6dcec49c 100644 --- a/deepgram/client.py +++ b/deepgram/client.py @@ -103,7 +103,7 @@ class Deepgram: - def __init__(self): + def __init__(self, *anything): raise Exception( """ FATAL ERROR: diff --git a/deepgram/clients/live/v1/async_client.py b/deepgram/clients/live/v1/async_client.py index d3723c12..1d641421 100644 --- a/deepgram/clients/live/v1/async_client.py +++ b/deepgram/clients/live/v1/async_client.py @@ -109,6 +109,7 @@ async def _start(self) -> None: if result is None: self.logger.error("LiveResultResponse.from_json is None") continue + self.logger.verbose("result: %s", result) await self._emit( LiveTranscriptionEvents.Transcript, result=result, @@ -122,6 +123,7 @@ async def _start(self) -> None: if result is None: self.logger.error("MetadataResponse.from_json is None") continue + self.logger.verbose("result: %s", result) await self._emit( LiveTranscriptionEvents.Metadata, metadata=result, @@ -135,6 +137,7 @@ async def _start(self) -> None: if result is None: self.logger.error("UtteranceEndResponse.from_json is None") continue + self.logger.verbose("result: %s", result) await self._emit( LiveTranscriptionEvents.UtteranceEnd, utterance_end=result, @@ -148,6 +151,7 @@ async def _start(self) -> None: if result is None: self.logger.error("ErrorResponse.from_json is None") continue + self.logger.verbose("result: %s", result) await self._emit( LiveTranscriptionEvents.Error, error=result, diff --git a/deepgram/clients/live/v1/client.py b/deepgram/clients/live/v1/client.py index e0dca293..78bc4bbe 100644 --- a/deepgram/clients/live/v1/client.py +++ b/deepgram/clients/live/v1/client.py @@ -141,6 +141,7 @@ def _listening(self) -> None: if result is None: self.logger.error("LiveResultResponse.from_json is None") continue + self.logger.verbose("result: %s", result) self._emit( LiveTranscriptionEvents.Transcript, result=result, @@ -154,6 +155,7 @@ def _listening(self) -> None: if result is None: self.logger.error("MetadataResponse.from_json is None") continue + self.logger.verbose("result: %s", result) self._emit( LiveTranscriptionEvents.Metadata, metadata=result, @@ -167,6 +169,7 @@ def _listening(self) -> None: if result is None: self.logger.error("UtteranceEndResponse.from_json is None") continue + self.logger.verbose("result: %s", result) self._emit( LiveTranscriptionEvents.UtteranceEnd, utterance_end=result, @@ -180,6 +183,7 @@ def _listening(self) -> None: if result is None: self.logger.error("ErrorResponse.from_json is None") continue + self.logger.verbose("result: %s", result) self._emit( LiveTranscriptionEvents.Error, error=result,