GeminiLiveLLMService: let the transcription timeout handler be scheduled

This commit is contained in:
Aleix Conchillo Flaqué
2026-01-30 22:33:39 -08:00
parent fee633cb92
commit d87f3543c7
2 changed files with 3 additions and 0 deletions

View File

@@ -1689,6 +1689,8 @@ class GeminiLiveLLMService(LLMService):
self._transcription_timeout_task = self.create_task(
self._transcription_timeout_handler()
)
# Let the event loop schedule the taks before it gets cancelled.
await asyncio.sleep(0)
async def _handle_msg_output_transcription(self, message: LiveServerMessage):
"""Handle the output transcription message."""