- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.2k
 
Description
Description of the feature request:
Hey Gemini team
I’ve been playing around with the Gemini LiveAPI. While testing the sample (Get_started_LiveAPI.py), I reworked a few parts to make it run smoother, especially the async flow, audio&video handling, and graceful shutdowns. It’s cleaner, faster, and a bit easier to follow.
I’d love to share this version or open a pull request on the Gemini Cookbook repo if that helps others experimenting with the API.
Thanks for building something this exciting.
Cheers,
What problem are you trying to solve with this feature?
Readability & structure
=> Clear section headers and consistent naming (AudioVideoLoop, _capture_frame, etc.)
=> Grouped related functions logically (audio, video, text, stream).
Error handling
=> Added safe finally: to close audio streams cleanly.
=> Used traceback.print_exc() for better debugging.
Any other information you'd like to share?
No response