deepgram / deepgram-go-sdk

Go SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
31 stars 27 forks source link

Auto Finalize When Not Sending Audio #237

Closed dvonthenen closed 3 months ago

dvonthenen commented 3 months ago

Proposed changes

This feature offloads the logic on when to send the Finalize message into the SDK. When this functionality is enabled which is done by setting a value for AutoFlushReplyDelta in milliseconds, the SDK keeps track of when to fire the Finalize message and will do so after AutoFlushReplyDelta milliseconds from the last Interim message.

Some additional changes to note:

Types of changes

What types of changes does your code introduce to the community Go SDK? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

NA