From 40851696b78c7f8d00a3113534454baa7434cc28 Mon Sep 17 00:00:00 2001 From: filipi87 Date: Wed, 20 May 2026 12:37:49 -0300 Subject: [PATCH] Not injecting silence in the TavusTransport. --- src/pipecat/transports/tavus/transport.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pipecat/transports/tavus/transport.py b/src/pipecat/transports/tavus/transport.py index dc901681a..31056e7c4 100644 --- a/src/pipecat/transports/tavus/transport.py +++ b/src/pipecat/transports/tavus/transport.py @@ -648,7 +648,11 @@ class TavusOutputTransport(BaseOutputTransport): await self._client.start(frame) if self._transport_destination: - await self._client.register_audio_destination(self._transport_destination) + # auto_silence=False so the CustomAudioSource only writes frames when + # there is real TTS audio. + await self._client.register_audio_destination( + self._transport_destination, auto_silence=True + ) await self.set_transport_ready(frame)