Retrieving the context_id from the TTSStartedFrame

This commit is contained in:
filipi87
2026-03-09 11:10:42 -03:00
parent 097f9c0896
commit c5ce667387

View File

@@ -1049,8 +1049,8 @@ class TTSService(AIService):
frame = await asyncio.wait_for(
self._stop_frame_queue.get(), timeout=self._stop_frame_timeout_s
)
context_id = frame.context_id
if isinstance(frame, TTSStartedFrame):
context_id = frame.context_id
has_started = True
elif isinstance(frame, (TTSStoppedFrame, InterruptionFrame)):
has_started = False