如果 TTSService 中的 push_text_frames=False 设置为 False,则会丢弃任何不产生音频的回转的 LLMFullResponseEndFrame - 仅工具回转永远不会在下游结束
作者: iamsolankiamit创建于 2026年9月7日更新于 2026年9月16日
async def _ends_seen(frames_to_send) -> int: down, _up = await run_test( SilentTTS(), frames_to_send=frames_to_send, expected_down_frames=None ) return sum(isinstance(f, LLMFullResponseEndFrame) for f in down)
async def main() -> int: audible = await _ends_seen([ LLMFullResponseStartFrame(), TextFrame("Here is your dashboard."), LLMFullResponseEndFrame(), SleepFrame(1.0), ]) silent = await _ends_seen([ LLMFullResponseStartFrame(), LLMFullResponseEndFrame(), SleepFrame(1.0), ])
1.1.1.1
内容来源: pipecat-ai/pipecat