From 4c629e538e75111bf9310e1fcb2cb2023310374f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 19 Jul 2024 11:42:36 -0700 Subject: [PATCH] processors(realtime-ai): add assistant before output transport Cartesia can do word-to-word output instead of full sentences. This means that for properly adding things into the context we need to add it before the transport, otherwise some words might be lost. --- src/pipecat/processors/frameworks/realtimeai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/processors/frameworks/realtimeai.py b/src/pipecat/processors/frameworks/realtimeai.py index d296416fa..df2e7650a 100644 --- a/src/pipecat/processors/frameworks/realtimeai.py +++ b/src/pipecat/processors/frameworks/realtimeai.py @@ -166,8 +166,8 @@ class RealtimeAIProcessor(FrameProcessor): self._tma_in, self._llm, self._tts, + self._tma_out, self._transport.output(), - self._tma_out ]) self._pipeline = pipeline