From 042115a6bb9e678876d63221a925faeb5cffee0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 19 Aug 2024 09:32:27 -0700 Subject: [PATCH] processors(rtvi): update initial config when sending bot-ready message --- src/pipecat/processors/frameworks/rtvi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/processors/frameworks/rtvi.py b/src/pipecat/processors/frameworks/rtvi.py index 0e8822486..8ab16755e 100644 --- a/src/pipecat/processors/frameworks/rtvi.py +++ b/src/pipecat/processors/frameworks/rtvi.py @@ -380,7 +380,6 @@ class RTVIProcessor(FrameProcessor): async def _start(self, frame: StartFrame): self._pipeline_started = True - await self._update_config(self._config) await self._maybe_send_bot_ready() async def _stop(self, frame: EndFrame): @@ -581,6 +580,7 @@ class RTVIProcessor(FrameProcessor): async def _maybe_send_bot_ready(self): if self._pipeline_started and self._first_participant_joined: await self._send_bot_ready() + await self._update_config(self._config) async def _send_bot_ready(self): if not self._params.send_bot_ready: