Skip to content

Commit e02b0f4

Browse files
Merge pull request #195 from dvonthenen/more-logging-fun
Implements Additional Logging (Logging Input Structs)
2 parents f1f94df + ea941b3 commit e02b0f4

File tree

6 files changed

+198
-65
lines changed

6 files changed

+198
-65
lines changed

deepgram/audio/microphone/microphone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class Microphone:
2121
"""
22-
TODO
22+
This implements a microphone for local audio input. This uses PyAudio under the hood.
2323
"""
2424

2525
def __init__(

deepgram/clients/live/v1/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, config: DeepgramClientOptions):
5757

5858
def start(self, options: LiveOptions = None):
5959
self.logger.debug("LiveClient.start ENTER")
60-
# TODO: options
60+
self.logger.info("options: %s", options)
6161

6262
self.options = options
6363

@@ -88,6 +88,7 @@ def start(self, options: LiveOptions = None):
8888
self.logger.debug("LiveClient.start LEAVE")
8989

9090
def on(self, event, handler): # registers event handlers for specific events
91+
self.logger.info("event fired: %s", event)
9192
if event in LiveTranscriptionEvents and callable(handler):
9293
self._event_handlers[event].append(handler)
9394

deepgram/clients/live/v1/legacy_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, config: DeepgramClientOptions):
5252

5353
async def __call__(self, options: LiveOptions = None):
5454
self.logger.debug("LegacyLiveClient.__call__ ENTER")
55-
# TODO: options
55+
self.logger.info("options: %s", options)
5656

5757
self.options = options
5858
url_with_params = append_query_params(self.websocket_url, self.options)

0 commit comments

Comments
 (0)