examples: fix examples to use LLMFullResponseEndFrame

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-19 09:39:34 -07:00
parent 36dd4933e9
commit 810dc30d3d
6 changed files with 13 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ import wave
from pipecat.frames.frames import (
Frame,
AudioRawFrame,
LLMResponseEndFrame,
LLMFullResponseEndFrame,
LLMMessagesFrame,
)
from pipecat.pipeline.pipeline import Pipeline
@@ -59,7 +59,7 @@ for file in sound_files:
class OutboundSoundEffectWrapper(FrameProcessor):
async def process_frame(self, frame: Frame, direction: FrameDirection):
if isinstance(frame, LLMResponseEndFrame):
if isinstance(frame, LLMFullResponseEndFrame):
await self.push_frame(sounds["ding1.wav"])
# In case anything else downstream needs it
await self.push_frame(frame, direction)