Uh oh!
There was an error while loading. Please reload this page.
Add audioStreamEnd support for realtimeInput in GeminiLlmConnection - #6442
Closed
Yashas1600 wants to merge 1 commit into
Closed
Add audioStreamEnd support for realtimeInput in GeminiLlmConnection#6442Yashas1600 wants to merge 1 commit into
Yashas1600 wants to merge 1 commit into
Conversation
The Gemini Live API's `realtimeInput` message supports an `audioStreamEnd` field Signed-off-by: Yashas Shashidhara <yashas22@g.ucla.edu>
wuliang229
commented
Jul 22, 2026
Collaborator
We'll go with pr #4490. Thanks for the contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Gemini Live API's
realtimeInputmessage supports anaudioStreamEndfieldthat signals the microphone has been turned off, allowing the model to force-flush
any buffered audio when VAD (voice activity detection) is enabled. Previously,
GeminiLlmConnection.send_realtime()handledActivityStartandActivityEndbut had no path for
audioStreamEnd.This change adds
audio_stream_end: Optional[bool]toLiveRequest, asend_audio_stream_end()convenience method toLiveRequestQueue, and extendsGeminiLlmConnection.send_realtime()to forward aTruevalue assend_realtime_input(audio_stream_end=True). Thebase_llm_flowdispatch loopis updated to route
live_request.audio_stream_endthrough the new code path.Fixes#2887.