omi
omi copied to clipboard
Python SDK Deepgram cancel closes without CloseStream
On current main, cancelling DeepgramTranscriber.run() in sdks/python/omi/stt/deepgram.py tears down the websockets connection and never sends Deepgram's CloseStream frame ({"type":"CloseStream"}). Remaining transcription results can be dropped. Go counterpart: #13023. React Native: #13621. TypeScript device SDK: #13623. Dart device SDK: #13625.
The Python client has no stop() method; caller cancellation is the shutdown path. Server EOF still reconnects and must not send CloseStream.
Reproduction with a patched websockets.connect fake (no live Deepgram, credentials, or audio): cancelling run() closed the socket with no CloseStream text frame.