Invoking to remove the audio context when there is no more audio to receive.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user