Does the new `use_tts_aligned_transcript=True` fla...
# ask-ai
c
Does the new
use_tts_aligned_transcript=True
flag need to be used in conjunction with
_sync_transcription_=True
?
t
Thanks for reaching out, Matin. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The
use_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.py
c
Does that mean messages sent from the llm to lk.transcription are synced with the audio?
t
Hey there! Let me break down something cool for you about transcript synchronization. When you turn on
use_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