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:
|
while True:
|
||||||
item = await state.response_queue.get()
|
item = await state.response_queue.get()
|
||||||
if item is None:
|
if item is None:
|
||||||
|
await self.remove_audio_context(state.context_id)
|
||||||
break
|
break
|
||||||
if isinstance(item, Exception):
|
if isinstance(item, Exception):
|
||||||
# Treat stream exceptions as terminal for this stream. Once
|
# Treat stream exceptions as terminal for this stream. Once
|
||||||
|
|||||||
Reference in New Issue
Block a user