What changed
@ai-sdk/google 4.0.124, released November 20, 2026, changes how gemini-3.5-transcribe-live streams finish, on Google and on Vertex.
- Before: the model ends each segment with
generationComplete and never sends turnComplete, so streams always waited out a 3-second grace period and merged every segment into one transcript-final with no whitespace between them.
- Now: segments complete on
generationComplete, and the stream finishes once server voice activity detection shows all sent audio has been transcribed.
- New option for push-to-talk:
providerOptions.google.streaming.automaticActivityDetection.disabled (googleVertex on Vertex). The audio is transcribed as one turn without splitting at pauses, and the transcript is finalized when audio input closes.
Prerequisites
- A project using the AI SDK Google provider with
gemini-3.5-transcribe-live, with a key in GOOGLE_GENERATIVE_AI_API_KEY
Steps
- Update the provider.
npm install @ai-sdk/google@4.0.124
- If your code assumes one merged final transcript, update it to handle separate segments.
- For push-to-talk, set the new provider option above.
Test it
Stream audio with two spoken phrases and a pause between them, and confirm your app shows both segments correctly.