able-jackal-84140
07/13/2025, 2:34 PMWARNING livekit.agents - _SegmentSynchronizerImpl.playback_finished called before text/audio input is done {"text_done": false, "audio_done": true}
tall-airline-16756
07/13/2025, 2:34 PMtall-airline-16756
07/13/2025, 2:35 PM_SegmentSynchronizerImpl.playback_finished
method was called before both the text and audio input streams were closed. In your case, text_done
is `false`; audio_done
is true
. This indicates the audio input has completed but the text stream is still active.
• To resolve this, ensure both the text and audio input streams are properly closed before triggering playback completion. If you have a function like end_text_input()
, make sure it is called before marking audio playback as finished.
• This synchronization breakdown may prevent audio from playing because the system expects both streams to finish before proceeding and may not fully transition to playback or clean up resources as needed.
Check your logic to make sure you are correctly signaling the end of both text and audio inputs in the intended order.
If you need more targeted help, please share relevant portions of your code where the streams are closed or managed.
Sources: livekit-agents/livekit/agents/voice/room_io/_output.py