I am using gemini-2.5-flash-exp-native-audio for voice api usecase where one calls are longer but after 10 minutes of the conversation the call got disconnected automatically.
I reserched this issue and found out that the session limit is 10 min
So to increse this time what i can do?
Hi Sama_Mustufa,
I quote from the documentation: you can use context window compression to extend sessions to an unlimited amount of time.
There is also an example with Python in the documentation. I think this solves your problem.
Ciao
1 Like
It happens because 10 minutes is the maximum limit of the session and after that you need to resume it. The documentation has the procedure about session resumption. Along with this, you should also implement context window compression. More in this documenation: Session management with Live API | Gemini API | Google AI for Developers