Forward audio and turn events from a Gemini Live session.
pip install 'google-genai==1.75.0' openspline
from openspline import Opensplinefrom openspline.integrations import GeminiLiveasync with Openspline().avatar("portrait.jpg") as avatar: print(avatar.viewer_url) await avatar.wait_for_viewer() async for event in GeminiLive(avatar).wrap(live_session.receive()): await handle_event(event) await avatar.end_turn()
Repeat the receive loop for later turns. Set GEMINI_API_KEY; optionally set GEMINI_LIVE_MODEL.