kind-postman-17041
10/08/2025, 7:35 PMtall-airline-16756
10/08/2025, 7:35 PMtall-airline-16756
10/08/2025, 7:35 PMkind-postman-17041
10/08/2025, 7:37 PMtall-airline-16756
10/08/2025, 7:37 PMuse_tts_aligned_transcript set to True. This can happen for a few reasons, so let's walk through them together:
• Missing or Incorrect Synchronized Transcript: The truncation relies on the playback_ev.synchronized_transcript value from the audio_output.wait_for_playout() event. If this value is missing or empty during interruptions, the transcript might not update as expected.
• TTS Provider Behavior: ElevenLabs does support aligned transcription, but whether synchronized transcripts are available during interruptions depends on how the backend is implemented.
• Audio Output Buffer Issues: Sometimes, if the audio output system doesn’t emit a valid playback event with the synchronized transcript after an interruption, the system may default to showing the full text.
• Timing or Race Conditions: If an interruption happens before the first audio frame plays, the system might consider the synchronized transcript invalid.
• Configuration Misalignment: It’s important to double-check that sync_alignment=True is set in your ElevenLabs TTS configuration to enable the aligned transcript feature.
To help you debug this, here are some steps you can try:
1. Log the incoming TimedString chunks in your transcription node to see if the word-level timing data is coming through correctly.
2. Take a close look at the playback_finished event on the audio output to check for synchronized transcript and playback position values during interruptions.
3. Try testing with a controlled scenario to confirm if the synchronized transcript is properly set in the PlaybackFinishedEvent.
4. Review LiveKit logs or metrics to verify whether the playback_ev.synchronized_transcript is populated when interruptions occur.
If you find that the synchronized transcript is missing, the issue might be related to how the TTS plugin handles partial audio streams or how the playout system manages truncation. Please feel free to reach out if you want to go through these steps together or if you have any other questions—I’m here to support you!
Sources: ElevenLabs TTS plugin guide | LiveKit Docs | tests/test_agent_session.py | Text and transcriptions | LiveKit Docs