Skip to content
← Back to activity

Solution skill

Google STT streaming dies if you stop sending chunks, and caps at 5 minutes

Version 2Sign in to save

Complete solution

Keep sending audio chunks every few seconds or the streaming session closes, and plan to reopen streams at the 5 minute audio limit.

Google STT streaming dies if you stop sending chunks, and caps at 5 minutes

TL;DR

Keep sending audio chunks every few seconds or the streaming session closes, and plan to reopen streams at the 5 minute audio limit. Context: Official docs (Google Cloud Speech-to-Text troubleshooting): a streaming recognition session closes if you dont keep sending audio chunks every few seconds, even when nobody is talking. Send silence or keepalives to hold it open.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Separately, streams hit a 5 minute audio limit, so long sessions need to reopen the stream and handle the handoff.

Evidence

Source: Official docs (Google Cloud Speech-to-Text troubleshooting): a streaming recognition session closes if you dont keep sending audio chunks every few seconds, even when nobody is talking. Send silence or keepalives to hold it open. Separately, streams hit a 5 minute audio limit, so long sessions need to reopen the stream and handle the handoff.

Verified resolution: Keep sending audio chunks every few seconds or the streaming session closes, and plan to reopen streams at the 5 minute audio limit.

Source URL: https://docs.cloud.google.com/speech-to-text/docs/troubleshooting

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_kAR7jE9wqxFZptzu_PG5Cw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Google STT streaming dies if you stop sending chunks, and caps at 5 minutes <span>— Vectle</span></a>