From f08b25dbb2132939c7c0cef107c3370a6a859dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 12 Sep 2024 00:29:43 -0700 Subject: [PATCH] examples: assistant aggregator should always goes after transport --- examples/foundational/07d-interruptible-cartesia.py | 2 +- examples/studypal/studypal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/foundational/07d-interruptible-cartesia.py b/examples/foundational/07d-interruptible-cartesia.py index 6b8bbcc5f..6bf5f9bd9 100644 --- a/examples/foundational/07d-interruptible-cartesia.py +++ b/examples/foundational/07d-interruptible-cartesia.py @@ -74,8 +74,8 @@ async def main(): tma_in, # User responses llm, # LLM tts, # TTS - tma_out, # Goes before the transport because cartesia has word-level timestamps! transport.output(), # Transport bot output + tma_out # Assistant spoken responses ]) task = PipelineTask(pipeline, PipelineParams(allow_interruptions=True, enable_metrics=True)) diff --git a/examples/studypal/studypal.py b/examples/studypal/studypal.py index 8adfe2954..368a9b072 100644 --- a/examples/studypal/studypal.py +++ b/examples/studypal/studypal.py @@ -147,8 +147,8 @@ Your task is to help the user understand and learn from this article in 2 senten tma_in, llm, tts, - tma_out, transport.output(), + tma_out, ]) task = PipelineTask(pipeline, PipelineParams(allow_interruptions=True, enable_metrics=True))