can i get the transcript with word-level milliseco...
# ask-ai
p
can i get the transcript with word-level millisecond precision?
t
Thanks for reaching out, tedtrux. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Great news! LiveKit can definitely provide transcripts with word-level millisecond precision, especially when you’re using ElevenLabs or Cartesia TTS providers. ElevenLabs gives you character-level timestamps with millisecond precision, which then get grouped into word-level timing. Cartesia, on the other hand, offers word-level timestamps right out of the box. To get this going, just set
use_tts_aligned_transcript=True
in your
AgentSession
. Plus, you can grab timing info through the
transcription_node
method, which gives you
TimedString
objects with
start_time
and
end_time
for each word. If you want a hand setting this up or have any questions, just give me a shout—I’m here to help! Sources: Text and transcriptions | LiveKit Docs | livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py | agents/src/transcription.ts
p
I'm after stt
t
When it comes to word-level millisecond precision for STT, it really depends on the provider you're working with. For instance, Google STT offers word-level timing, but Cartesia STT doesn't have that feature just yet. Could you share which STT provider you're using or thinking about? That way, I can give you the best advice possible! Sources: plugins/test/src/stt.ts | livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/stt.py | Text and transcriptions | LiveKit Docs