cold-oyster-96332
07/23/2025, 12:48 AMuse_tts_aligned_transcript=True flag need to be used in conjunction with _sync_transcription_=True?tall-airline-16756
07/23/2025, 12:48 AMtall-airline-16756
07/23/2025, 12:49 AMuse_tts_aligned_transcript=True flag can be used independently and does not require sync_transcription=True to function.
use_tts_aligned_transcript enables TTS-aligned transcription forwarding, synchronizing transcription output with actual speech timing and supporting word-level synchronization when available. sync_transcription is a separate parameter that controls transcription synchronization at the room or CLI level, and is not a prerequisite for using TTS-aligned transcripts.
You can enable use_tts_aligned_transcript=True on its own in your AgentSession configuration to activate this feature.
Sources: Text and transcriptions | LiveKit Docs | livekit-agents/livekit/agents/voice/transcription/synchronizer.pycold-oyster-96332
07/23/2025, 12:51 AMtall-airline-16756
07/23/2025, 12:52 AMuse_tts_aligned_transcript=True, it's like magic for matching your transcript with audio playback. Think of it as making sure the words you see perfectly dance along with the sounds you hear.
Here's what this awesome feature does:
• Your transcript moves in perfect sync with the speech as it plays
• With some awesome TTS providers like Cartesia and ElevenLabs, you can even get word-by-word alignment (how cool is that?)
• For other providers, we'll still make sure your sentences line up nicely
Bottom line: The transcripts sent to lk.transcription will feel super smooth and accurate, giving you an audio experience that just feels right. 😊
Sources: Text and transcriptions | LiveKit Docs