From 711d9a10214b75aef8a5c6a1e449bcac899e98c3 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 7020ea857..4abca3b7d 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):