flaky-hospital-13625
09/30/2025, 11:14 AMconversation_item_added event, but the timestamps (created_at) in it are not accurate, especially for user messages.tall-airline-16756
09/30/2025, 11:14 AMtall-airline-16756
09/30/2025, 11:15 AMflaky-hospital-13625
09/30/2025, 11:16 AMtall-airline-16756
09/30/2025, 11:17 AMtranscription_node along with TimedString. This approach gives you word-level or sentence-level timestamps depending on your TTS provider. Let me walk you through the steps:
1. First, enable use_tts_aligned_transcript=True in your AgentSession configuration.
2. Next, implement a transcription_node method in your agent to access the timing information. This iterator yields a TimedString object that includes start_time and end_time for each word, measured in seconds relative to the start of the agent's current turn.
3. Then, you can adapt the approach used in the Transcriber Agent example to capture real-time transcriptions with timestamps and save them to a local file. After that, integrate an S3 client library like boto3 to upload your transcript data to S3.
For instance, inside the on_transcript function, you might initialize an S3 client and use the put_object or upload_file method to save the transcript data with timestamps directly to your S3 bucket.
Just a heads-up, the transcription_node and TimedString features are currently experimental and might evolve in future SDK versions.
If you’d like, I’m here to help you with any part of the implementation—just let me know!
Sources: pipeline-stt/transcriber/transcriber.py | livekit-agents/livekit/agents/voice/room_io/_output.py | Docs::Agents | Session recording and transcripts | LiveKit Docs