当播放停止时,BaseOutputTransport 会丢弃下一轮的音频缓存
作者: kelvinymoura创建于 2026年9月30日更新于 2026年9月30日
- Run the script below with pipecat 1.12.0 or
main. - Turn 1 arrives in a burst, and turn 2 starts arriving while turn 1 is still playing.
- It prints
turn 2 sent 2880 bytes, played 1920 bytes, lost 20 ms: the part of turn 2 that was buffered when playback reached turn 1'sTTSStoppedFramenever plays. There is no resampling in this script; with resampling, the resampler's contents are lost as well.
内容来源: pipecat-ai/pipecat