omi icon indicating copy to clipboard operation
omi copied to clipboard

Python SDK Parakeet cancel closes without finalize

Open Da7em-T opened this issue 2 months ago • 0 comments

On current main, cancelling ParakeetTranscriber.run() in sdks/python/omi/stt/parakeet.py tears down the websockets connection and never sends Parakeet's finalize frame. Remaining transcription results can be dropped. Dart/RN/TS Parakeet stop() already send finalize before close. Python Deepgram counterpart: #13626.

The Python client has no stop() method; caller cancellation is the shutdown path. Server EOF still returns and must not send finalize.

Reproduction with a patched websockets.connect fake (no live Parakeet, credentials, or audio): cancelling run() closed the socket with no finalize text frame.

Da7em-T avatar Sep 12 '26 13:09 Da7em-T