big-controller-60015
07/25/2025, 7:51 AMtall-airline-16756
07/25/2025, 7:51 AMtall-airline-16756
07/25/2025, 7:52 AMrotate_segment called while previous segment is still being rotated occurs in the TranscriptSynchronizer class, which is responsible for synchronizing text with audio playback timing.
This warning indicates that the rotate_segment() method was called while a previous segment rotation operation is still in progress. The system uses an asyncio task (_rotate_segment_atask) to handle segment rotations, and this warning is triggered when a new rotation is requested before the current one has completed.
When it occurs:
• It happens when segment boundaries are triggered more rapidly than the system can process them, leading to overlapping rotation requests.
• This could be due to rapid changes in audio playback state or performance bottlenecks in segment processing.
Implications:
• The system continues to function and creates a new rotation task despite the warning.
• However, it may indicate potential issues such as audio/text synchronization problems or timing conflicts in the voice processing pipeline.
While the warning does not stop operations, it is advisable to review the timing and frequency of segment rotation requests to ensure they align with the system's processing capabilities.
Sources: livekit-agents/livekit/agents/voice/avatar/_datastream_io.pybig-controller-60015
07/25/2025, 7:54 AMtall-airline-16756
07/25/2025, 7:55 AM