Plantoidz / mechanical-garden-FA

Multimodal mechanical plantoid garden repository.
3 stars 3 forks source link

Clean up Deepgram “Is Final / Speech Final” Websocket edge caes #20

Open benrito opened 5 months ago

benrito commented 5 months ago

Investigate whether sample_rate is causing problems or needs to be hardcoded according to device Socket timeout

benrito commented 4 months ago

What's happening is that we grab is_final but keep transcribing, because endpointing is lower than utterance final threshold: https://developers.deepgram.com/docs/understanding-end-of-speech-detection

Then, we take the second is_final and ignore the first one.

We need to do testing on the best logic for end of speech detection, and then make sure that no matter what, we take the first is_final only (or else ensure that the whole transcript is passed as is_final)

Screenshot 2024-05-15 at 9 17 37 AM