Gemini 3.5 Transcribe Live — WebSocket 1008 after activityEnd

Subject: Gemini 3.5 Transcribe Live — WebSocket 1008 after activityEnd

We are integrating gemini-3.5-transcribe-live into a local voice assistant using manual VAD.

Short transcription-only sessions have succeeded, including accurate finalized transcripts.

However, longer normal sessions repeatedly terminate with:

  • WebSocket close code: 1008

  • Close reason: The operation was aborted.

  • Setup acknowledged: true

  • Last outbound event: activityEnd

  • Outbound message count: 97

The implementation follows the documented manual-VAD sequence: activityStart → PCM audio → activityEnd.

No final transcript was dispatched to the downstream assistant before the connection closed.

Could you clarify whether this close reason indicates a backend limitation, unsupported session behavior, or a known issue with manual VAD on this model?

We can provide sanitized timestamps and protocol metadata privately if needed.

Hello @minara_ops ,

We tested gemini-3.5-transcribe-live with manual VAD (activityStart → 100 ms PCM audio chunks → activityEnd) across ~3 s, ~10 s (~100 outbound messages), and ~33 s utterances, as well as multi-turn sessions. In our tests, the finalized serverContent.inputTranscription was delivered ~0.3 seconds after activityEnd and subsequent turns on the same connection succeeded.

Two behaviors on gemini-3.5-transcribe-live can cause the symptoms you described:

  1. Dispatch on serverContent.inputTranscription (not turnComplete): As documented in the Live Transcription guide, gemini-3.5-transcribe-live returns serverContent.interimInputTranscription and finalized serverContent.inputTranscription events and does not emit serverContent.turnComplete. If your downstream pipeline waits for turnComplete after sending activityEnd, it will not dispatch the finalized transcript.
  2. Client inactivity timeout (~60 seconds): If no outbound messages are sent after activityEnd, the server closes the idle WebSocket after ~60 seconds with close code 1008 (The operation was aborted.). To keep a session open between utterances (up to the 10-minute session limit), continue streaming silent PCM keepalive chunks while waiting for the next speech turn, or open a new session per turn.

If you are seeing the 1008 close immediately upon sending activityEnd (rather than ~60 seconds later) and before any serverContent.inputTranscription frame arrives, please share:

  • Your setup message (with the API key removed)
  • The relative timestamps of activityStart, activityEnd, any received serverContent events, and the 1008 close
  • The approximate UTC timestamp of a recent failing session