average-jordan-45543
04/14/2026, 10:06 AMtall-airline-16756
04/14/2026, 10:06 AMtall-airline-16756
04/14/2026, 10:06 AMuse_tts_aligned_transcript=True).
• Implement a transcription_node that accepts TimedString (or iterables of TimedString) and reads start_time and end_time (seconds relative to the agent turn). Example:
async def transcription_node(self, text: AsyncIterable[str | TimedString], model_settings: ModelSettings) -> AsyncGenerator[str | TimedString, None]:
async for chunk in text:
if isinstance(chunk, TimedString):
print(f"Text: '{chunk}', Start: {chunk.start_time}, End: {chunk.end_time}")
yield chunk
Note: TimedString / TTS-aligned transcription is experimental and requires the aligned-transcript feature to be enabled; without that, segments may not include timestamps. If you want, tell me how you’re creating your AgentSession and I’ll show where to set use_tts_aligned_transcript or review your transcription_node code.
Sources: Text and transcriptions | LiveKit Documentation, with interactive elements