SimliVideoService: check exception initializing simli client

This commit is contained in:
Aleix Conchillo Flaqué
2025-11-07 11:23:31 -08:00
parent 38aac44a1e
commit 5729722dcd

View File

@@ -158,6 +158,7 @@ class SimliVideoService(FrameProcessor):
async def _start_connection(self): async def _start_connection(self):
"""Start the connection to Simli service and begin processing tasks.""" """Start the connection to Simli service and begin processing tasks."""
try:
if not self._initialized: if not self._initialized:
await self._simli_client.Initialize() await self._simli_client.Initialize()
self._initialized = True self._initialized = True
@@ -166,6 +167,8 @@ class SimliVideoService(FrameProcessor):
await self._simli_client.sendSilence() await self._simli_client.sendSilence()
self._audio_task = self.create_task(self._consume_and_process_audio()) self._audio_task = self.create_task(self._consume_and_process_audio())
self._video_task = self.create_task(self._consume_and_process_video()) self._video_task = self.create_task(self._consume_and_process_video())
except Exception as e:
logger.error(f"{self}: unable to start connection: {e}")
async def _consume_and_process_audio(self): async def _consume_and_process_audio(self):
"""Consume audio frames from Simli and push them downstream.""" """Consume audio frames from Simli and push them downstream."""