no longer necessary to call super().process_frame(frame, direction)
This commit is contained in:
@@ -51,8 +51,6 @@ class TranslationProcessor(FrameProcessor):
|
||||
self._language = language
|
||||
|
||||
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
||||
await super().process_frame(frame, direction)
|
||||
|
||||
if isinstance(frame, TextFrame):
|
||||
context = [
|
||||
{
|
||||
@@ -78,8 +76,6 @@ class TranslationSubtitles(FrameProcessor):
|
||||
# subtitles.
|
||||
#
|
||||
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
||||
await super().process_frame(frame, direction)
|
||||
|
||||
if isinstance(frame, TextFrame):
|
||||
message = {"language": self._language, "text": frame.text}
|
||||
await self.push_frame(DailyTransportMessageFrame(message))
|
||||
|
||||
Reference in New Issue
Block a user