diff --git a/src/pipecat/extensions/voicemail/voicemail_detector.py b/src/pipecat/extensions/voicemail/voicemail_detector.py index 19f8cf870..7f6d6eb73 100644 --- a/src/pipecat/extensions/voicemail/voicemail_detector.py +++ b/src/pipecat/extensions/voicemail/voicemail_detector.py @@ -22,18 +22,13 @@ from loguru import logger from pipecat.frames.frames import ( BotInterruptionFrame, - CancelFrame, - CancelTaskFrame, EndFrame, - EndTaskFrame, Frame, LLMFullResponseEndFrame, LLMFullResponseStartFrame, LLMTextFrame, - StartInterruptionFrame, StopFrame, - StopInterruptionFrame, - StopTaskFrame, + SystemFrame, TTSAudioRawFrame, TTSStartedFrame, TTSStoppedFrame, @@ -104,19 +99,7 @@ class NotifierGate(FrameProcessor): await self.push_frame(frame, direction) elif isinstance( frame, - ( - BotInterruptionFrame, - CancelFrame, - CancelTaskFrame, - EndTaskFrame, - EndFrame, - StartInterruptionFrame, - StopInterruptionFrame, - StopFrame, - StopTaskFrame, - UserStartedSpeakingFrame, - UserStoppedSpeakingFrame, - ), + (SystemFrame, EndFrame, StopFrame), ): await self.push_frame(frame, direction)