Introduce AggregatedLLMTextFrame to allow a separation of TTSTextFrame, indicating a spoken frame vs other aggregated, non-spoken frames

This commit is contained in:
mattie ruth backman
2025-10-28 11:06:49 -04:00
parent 69945c5e0d
commit e6dc1a510d
8 changed files with 88 additions and 60 deletions

View File

@@ -13,6 +13,7 @@ import pytest
from aiohttp import web
from pipecat.frames.frames import (
AggregatedLLMTextFrame,
ErrorFrame,
TTSAudioRawFrame,
TTSSpeakFrame,
@@ -74,7 +75,6 @@ async def test_run_piper_tts_success(aiohttp_client):
]
expected_returned_frames = [
TTSTextFrame,
TTSStartedFrame,
TTSAudioRawFrame,
TTSAudioRawFrame,
@@ -122,7 +122,7 @@ async def test_run_piper_tts_error(aiohttp_client):
TTSSpeakFrame(text="Error case."),
]
expected_down_frames = [TTSTextFrame, TTSStoppedFrame, TTSTextFrame]
expected_down_frames = [TTSStoppedFrame, TTSTextFrame]
expected_up_frames = [ErrorFrame]