Skip to content
Merged
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
2 changes: 1 addition & 1 deletion deepgram/transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ async def finish(self) -> None:
"""Closes the connection to the Deepgram endpoint,
waiting until ASR is complete on all submitted data."""

self.send(b'') # Set message for "data is finished sending"
self.send(json.dumps({"type": "CloseStream"})) # Set message for "data is finished sending"
while not self.done:
await asyncio.sleep(0.1)

Expand Down