Skip to content

Conversation

@mattieerolainnofactorcom

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
Copy link

vercel bot commented Jan 17, 2026

@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.

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