RTVI processors should use TextFrame not TextFrame and all subclasses

This commit is contained in:
Kwindla Hultman Kramer
2024-10-07 18:04:38 -07:00
parent 40dc546b81
commit ab4a8d791a

View File

@@ -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):