Article·Announcements·Jun 6, 2023

Holding Streams Open with Stream KeepAlive

Shir Goldberg
By Shir Goldberg
PublishedJun 6, 2023
UpdatedJun 13, 2024

Want to keep a DG stream alive without sending any data? Now, it’s as easy as:

Our system closes connections if no audio data is sent for a couple seconds, which can make for a frustrating development experience. Whether you want to open a websocket a little bit before you need it, or intermittently stop sending data you don’t want transcribed, there are several reasons you might want to hang on to a websocket while not sending any data.

We’ve heard that this timeout doesn’t serve your needs, and that our customers are looking for a way to keep streams open for longer. Now, you can just send a KeepAlive message, and the stream will remain open for another 12 seconds.

Want to learn more? Head to our documentation.

Unlock language AI at scale with an API call.

Get conversational intelligence with transcription and understanding on the world's best speech AI platform.