Skip to content
Discussion options

You must be logged in to vote

With an utterance that short, the Deepgram server would be waiting to receive more audio before it has enough context to transcribe (how much is enough depends on multiple factors, such as duration thresholds, and endpointing, and more). If you want to tell Deepgram that you won't be sending any more audio, send a WebSocket text frame containing {"type": "CloseStream"}. This will cause Deepgram to transcribe any audio that's been received (even though we might not have received the "optimal" amount of context yet), send back the transcript, and then close the WebSocket. See the docs for more (although that's basically all there is to it!)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@antxv
Comment options

Answer selected by antxv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants