fancy-easter-44489
11/26/2025, 8:17 AMtall-airline-16756
11/26/2025, 8:17 AMtall-airline-16756
11/26/2025, 8:18 AMtranscription_node is doing async for delta in text, but text is None. That happens when the TTS node in your pipeline returned None instead of an async iterable of audio frames.
What you can do:
1. Check whether you overrode tts_node. If you did, ensure it always returns an async iterable of rtc.AudioFrame (never None).
2. If you call Agent.default.tts_node(...), guard against None and return an empty async generator instead. Example pattern:
async def tts_node(self, text: AsyncIterable[str], model_settings: ModelSettings) -> AsyncIterable[rtc.AudioFrame]:
audio_stream = Agent.default.tts_node(self, text, model_settings)
if audio_stream is None:
async def empty_stream():
if False:
yield
return empty_stream()
async for frame in audio_stream:
yield frame
1. Add logging where you call the default TTS to confirm whether it returned None and why (model load failure, config issue, etc.).
Could you tell me whether you overrode tts_node or are using the default TTS? If you share the tts_node implementation (or the code that invokes Agent.default.tts_node), I can point out the exact place to fix.
Sources: Pipeline nodes and hooks | LiveKit docsfancy-easter-44489
11/26/2025, 8:21 AMtall-airline-16756
11/26/2025, 8:22 AMtranscription_node. I can help pinpoint the cause. Quick questions:
• Are you using any custom Agent config or model settings (language, model name, or provider) when calling TTS?
• Do you see any earlier logs or errors about model loading, authentication, or TTS failures before the TypeError?
• Which LiveKit Agents version are you running?
• Can you share the code snippet where you construct/run the agent pipeline or where tts_node is invoked (the few lines that call or configure TTS)?
With those details I’ll tell you the minimal change to guard the default TTS return and where to add logging to capture the underlying failure.fancy-easter-44489
11/26/2025, 8:23 AMtall-airline-16756
11/26/2025, 8:23 AMAgent.default.tts_node(...) and log if it returns None, then return an empty async generator so downstream async for doesn't get None. Example pattern:
audio_stream = Agent.default.tts_node(self, text, model_settings)
if audio_stream is None:
async def empty_stream():
if False:
yield
return empty_stream()
1. Try a minimal repro
• Run a small agent pipeline with default settings (no custom model/provider) to see if TTS works. If it works there, the issue is in your custom config.
1. Consider updating if applicable
• If you can test on a newer Agents build (if available to you), that may include more logging and fixes around TTS initialization.
If you want, share:
• The model/provider settings you pass to the Agent (language, model name, provider), and
• Any log lines appearing just before the TypeError.
With those I’ll point to the exact field to fix or the log message to investigate further.fancy-easter-44489
11/26/2025, 8:24 AMtall-airline-16756
11/26/2025, 8:24 AM