Invoking to remove the audio context when there is no more audio to receive.

This commit is contained in:
filipi87
2026-04-13 09:34:13 -03:00
parent f45a410f56
commit 1d5dcf1698

View File

@@ -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