Skip to content

Merge and refactor live audio commit from gencerege/vad - #258

Open
mattieerolainnofactorcom wants to merge 2 commits into
ricky0123:masterfrom
mattieerolainnofactorcom:feature/EmitChunk
Open

mattieerolainnofactorcom wants to merge 2 commits into
ricky0123:masterfrom
mattieerolainnofactorcom:feature/EmitChunk

Conversation

@mattieerolainnofactorcom

Copy link
Copy Markdown

I'm using this code with Google Gemini Live API for client side VAD . Code in #191 was so many commits behind current master branch that I had problems just merging it. I instead refactored it and wrote some unit tests to verify that the changes don't break old functionality.

Here is how I use the events with @google/genai Session:

            onSpeechRealStart: () => {
                session.sendRealtimeInput({ activityStart: {} })
            },
            onEmitChunk: (audio) => {
                session.sendRealtimeInput({
                    audio: this.createBlob(audio)
                });
            },
            onSpeechEnd: (audio) => {
                session.sendRealtimeInput({
                    audio: this.createBlob(audio)
                });

                session.sendRealtimeInput({ activityEnd: {} })
            }

@vercel

vercel Bot commented Jan 17, 2026

Copy link
Copy Markdown

@mattieerolainnofactorcom is attempting to deploy a commit to the rrxz's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant