agents icon indicating copy to clipboard operation
agents copied to clipboard

Audio hiccups and cuts with Gemini Live API in LiveKit

Open Omarimai opened this issue 1 month ago • 4 comments

Audio hiccups and cuts with Gemini Live API in LiveKit

Description

I'm experiencing audio playback issues when using the Gemini Live API with LiveKit. The audio has noticeable hiccups and cuts during playback.

Debugging findings

Through debugging, I've identified that the issue appears to be related to the timing of audio data delivery:

  • The Gemini Live API sends audio in bursts
  • The audio player attempts to consume the buffered audio
  • When the player reaches the end of a burst before the next burst arrives, it causes audible hiccups/cuts in playback

Question

Is anyone else encountering similar audio discontinuity issues when using Gemini Live API with LiveKit? Would implementing a jitter buffer in the plugin help mitigate this issue?

Environment

  • LiveKit version : 1.0.13
  • google-genai : 1.39.0
  • Transport: SIP, Web, etc.

Potential solutions

I'm wondering if a jitter buffer implementation within the plugin would be the appropriate solution to smooth out these bursty audio transmissions. Any guidance or recommendations would be appreciated.

Omarimai avatar Oct 08 '25 09:10 Omarimai