Receiving the following error: ```{"message": "Err...
# ask-ai
m
Receiving the following error:
Copy code
{
  "message": "Error in _tts_inference_task\nTraceback (most recent call last):\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/tts/tts.py\", line 556, in __anext__\n    val = await self._event_aiter.__anext__()\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nStopAsyncIteration\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/utils/log.py\", line 16, in async_fn_logs\n    return await fn(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/opentelemetry/util/_decorator.py\", line 71, in async_wrapper\n    return await func(*args, **kwargs)  # type: ignore\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/voice/generation.py\", line 222, in _tts_inference_task\n    async for audio_frame in tts_node:\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/voice/agent.py\", line 432, in tts_node\n    async for ev in stream:\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/tts/tts.py\", line 559, in __anext__\n    raise exc  # noqa: B904\n    ^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/opentelemetry/util/_decorator.py\", line 71, in async_wrapper\n    return await func(*args, **kwargs)  # type: ignore\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/tts/tts.py\", line 394, in _main_task\n    raise APIError(f\"no audio frames were pushed for text: {self._pushed_text}\")\nlivekit.agents._exceptions.APIError: no audio frames were pushed for text: Good afternoon, am I speaking with Mister वरुण? (body=None, retryable=True)",
  "level": "ERROR",
  "name": "livekit.agents",
  "room": "outbound_+918296539782_1766749018",
  "pid": 426,
  "job_id": "AJ_RkbooyKWLFU6",
  "timestamp": "2025-12-26T11:37:09.283287+00:00"
}
t
Thanks for reaching out, Varun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to the error "no audio frames were pushed for text: Good afternoon, am I speaking with Mister वरुण?" and why TTS produced no audio. Summary of cause • The TTS pipeline ran but produced zero audio frames for that input. This most often happens when the TTS model/plugin cannot handle the input text (mixed English + Devanagari script) and returns no audio. Immediate steps to try 1. Test with a Latin-only variant ◦ Try: "Good afternoon, am I speaking with Mister Varun?" — if that generates audio, the issue is the Devanagari text. 1. Specify the correct language or voice in your TTS config ◦ If your provider supports Hindi, set the language to
hi
or the provider-specific language tag. 1. Transliterate or normalize non-Latin text before sending to TTS ◦ Convert "वरुण" → "Varun" (or use a transliteration library) and re-run. 1. Add input validation/logging ◦ Log the exact text that goes to the TTS provider and detect non-Latin scripts so you can apply transliteration or fallback. 1. Add a graceful fallback in your TTS node ◦ Catch the "no audio frames were pushed" error and either play a default greeting, silence, or retry with transliterated text. Questions to narrow it down • Which TTS provider/plugin are you using (OpenAI, ElevenLabs, etc.)? • Are you explicitly setting a language/voice in the TTS call? If so, what values? • Does plain English input always succeed for this agent? If you tell me the provider and your TTS call snippet (the settings you pass), I’ll give exact config and code examples for transliteration/fallback handling. Sources: examples/voice_agents | livekit/livekit_composite | DeepWiki | OpenAI TTS plugin guide | LiveKit docs | Pipeline nodes and hooks | LiveKit docs | ElevenLabs TTS plugin guide | LiveKit docs