From 1d5dcf1698f75b4d1d8b19c2f489dd1708bf0b98 Mon Sep 17 00:00:00 2001 From: filipi87 Date: Mon, 13 Apr 2026 09:34:13 -0300 Subject: [PATCH] Invoking to remove the audio context when there is no more audio to receive. --- src/pipecat/services/nvidia/tts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipecat/services/nvidia/tts.py b/src/pipecat/services/nvidia/tts.py index be468efcc..daa4e0bd7 100644 --- a/src/pipecat/services/nvidia/tts.py +++ b/src/pipecat/services/nvidia/tts.py @@ -413,6 +413,7 @@ class NvidiaTTSService(TTSService): while True: item = await state.response_queue.get() if item is None: + await self.remove_audio_context(state.context_id) break if isinstance(item, Exception): # Treat stream exceptions as terminal for this stream. Once