Share this guide

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

{ type: KeepAlive }

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.

Sign Up FreeBook a Demo