Remove wait

This commit is contained in:
James Hush
2025-11-26 12:27:02 +01:00
parent c2eb663bdc
commit 8bbfa829d3

View File

@@ -527,12 +527,6 @@ class TurnAwareTranscriptProcessor(BaseTranscriptProcessor):
await self.push_frame(frame, direction)
elif isinstance(frame, InterruptionFrame):
# Handle interruption
# Give a brief moment for any pending TTSTextFrames to process
import asyncio
await asyncio.sleep(0.001)
# Emit assistant transcript message with what was spoken before interruption
if self._current_turn_assistant_parts:
assistant_content = concatenate_aggregated_text(self._current_turn_assistant_parts)