5-07-25 13:18:34.756 5-07-25 07:48:34,754 - WARNI...
# ask-ai
b
2025-07-25 131834.756 2025-07-25 074834,754 - WARNING livekit.agents - rotate_segment called while previous segment is still being rotated {"pid": 77, "job_id": "AJ_WjkgV5yWDiUD"} what is the issue, when can it come up
t
Thanks for reaching out, Mohammed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The warning
rotate_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.py
b
i was trying to use the break time in eleven labs can this be related to that
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!