From ab4a8d791a4054bfa4b285a6579f1a6ff1fccaea Mon Sep 17 00:00:00 2001 From: Kwindla Hultman Kramer Date: Mon, 7 Oct 2024 18:04:38 -0700 Subject: [PATCH] RTVI processors should use TextFrame not TextFrame and all subclasses --- src/pipecat/processors/frameworks/rtvi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/processors/frameworks/rtvi.py b/src/pipecat/processors/frameworks/rtvi.py index b2c7e491e..5500f0a53 100644 --- a/src/pipecat/processors/frameworks/rtvi.py +++ b/src/pipecat/processors/frameworks/rtvi.py @@ -490,7 +490,7 @@ class RTVIBotLLMTextProcessor(RTVIFrameProcessor): await self.push_frame(frame, direction) - if isinstance(frame, TextFrame): + if type(frame) is TextFrame: await self._handle_text(frame) async def _handle_text(self, frame: TextFrame): @@ -507,7 +507,7 @@ class RTVIBotTTSTextProcessor(RTVIFrameProcessor): await self.push_frame(frame, direction) - if isinstance(frame, TextFrame): + if type(frame) is TextFrame: await self._handle_text(frame) async def _handle_text(self, frame: TextFrame):