limited-vr-84328
09/26/2025, 8:59 PMgetting this warning after upgrading from 1.2.6 to 1.2.11is enabled but no agent transcript was returned from ttsuse_tts_aligned_transcript
tall-airline-16756
09/26/2025, 8:59 PMtall-airline-16756
09/26/2025, 8:59 PMuse_tts_aligned_transcript is enabled but no agent transcript was returned from tts pops up when the use_tts_aligned_transcript setting is turned on, but the TTS engine doesn’t provide a transcript. This might happen if your TTS provider doesn’t support aligned transcripts, sends back an empty transcript, or works in a mode where timed transcripts aren’t available.
Here are a few friendly tips to help you fix this:
• Make sure your TTS provider supports aligned transcription. Providers like Cartesia and ElevenLabs work well with this feature.
• Double-check that your TTS instance is set up properly to return aligned transcripts.
• If your TTS provider doesn’t support this, you can simply turn off the setting by setting use_tts_aligned_transcript=False in your configuration—this will stop the warning from showing up.
If having alignment isn’t super important for what you’re doing, it’s totally okay to ignore the warning. But just so you know, turning off the flag is a good way to keep your logs nice and clean.
Sources: livekit-agents/livekit/agents/voice/agent.py | Text and transcriptions | LiveKit Docs | Cartesia TTS integration guide | LiveKit Docs | ElevenLabs TTS integration guide | LiveKit Docslimited-vr-84328
09/26/2025, 8:59 PMtall-airline-16756
09/26/2025, 9:00 PMlimited-vr-84328
09/26/2025, 9:00 PMtall-airline-16756
09/26/2025, 9:01 PMpip install "livekit-agents[elevenlabs]~=1.2".
2. Next, don’t forget to set your ELEVEN_API_KEY in the .env file so the system can authenticate properly.
3. Then, you can use the following configuration in your AgentSession to get started:
from livekit.plugins import elevenlabs
from livekit.agents import AgentSession
session = AgentSession(
tts=elevenlabs.TTS(
voice_id="YOUR_VOICE_ID",
model="eleven_multilingual_v2"
),
use_tts_aligned_transcript=True,
)
If you want to work with the timing data programmatically, you can create a transcription_node method in your agent. This method helps you handle TimedString objects, which include detailed word-level timing information:
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):
logger.info(f"TimedString: '{chunk.text}' ({chunk.start_time}s - {chunk.end_time}s)")
yield chunk
For any more details or if you run into questions, feel free to reach out! I’m here to help you every step of the way.
Sources: Docs::Agents | Text and transcriptions | LiveKit Docs | Docs::Agents | Cartesia TTS integration guide | LiveKit Docs | Cartesia TTS integration guide | LiveKit Docslimited-vr-84328
09/26/2025, 9:20 PMtall-airline-16756
09/26/2025, 9:20 PMlimited-vr-84328
09/26/2025, 9:21 PMtall-airline-16756
09/26/2025, 9:22 PMuse_tts_aligned_transcript setting or the TTS provider, like ElevenLabs. Instead, the console mode kicks in through a specific CLI argument (cli.CLI_ARGUMENTS.console) during AgentSession.start(), and this happens independently from the TTS configuration.
The use_tts_aligned_transcript setting is a separate feature flag that manages transcription synchronization, and it relies on the capabilities of your TTS provider. Since ElevenLabs supports aligned transcripts, this feature should work smoothly. That said, if you’re seeing a warning in console mode, it might mean the TTS service didn’t return a transcript for a particular request — this can happen due to temporary issues or certain configurations.
If everything works fine outside of console mode, this could just be a logging quirk related to how the CLI handles output. Please feel free to reach out if you’d like me to help you dig deeper into this — I’m here to support you!
Sources: livekit-agents/livekit/agents/inference/tts.py | Text and transcriptions | LiveKit Docs | ElevenLabs TTS integration guide | LiveKit Docs