getting this error with inworld tts ```2025-07-13...
# ask-ai
f
getting this error with inworld tts
Copy code
2025-07-13T23:45:43.567 app[d891247be76d98] yyz [info] {"message": "TTS metrics", "level": "INFO", "name": "livekit.agents", "ttfb": 0.8292542109999914, "audio_duration": 6.65, "pid": 667, "job_id": "AJ_YUkVKLoLhsp8", "room_name": "-", "call_id": "-", "timestamp": "2025-07-13T23:45:43.566096+00:00"}

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] 2025-07-13 23:45:44,403 - livekit.agents - WARNING - failed to synthesize speech, retrying in 0.1s

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] Traceback (most recent call last):

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/livekit/plugins/inworld/tts.py", line 241, in _run

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] async for line in resp.content:

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 52, in __anext__

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] rv = await self.read_func()

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] ^^^^^^^^^^^^^^^^^^^^^^

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 352, in readline

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] return await self.readuntil()

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] ^^^^^^^^^^^^^^^^^^^^^^

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 380, in readuntil

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] raise ValueError("Chunk too big")

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] ValueError: Chunk too big

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] The above exception was the direct cause of the following exception:

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] Traceback (most recent call last):

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/livekit/agents/tts/tts.py", line 206, in _main_task

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] await self._run(output_emitter)

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/livekit/plugins/inworld/tts.py", line 263, in _run

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] raise APIConnectionError() from e

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] livekit.agents._exceptions.APIConnectionError: Connection error. (body=None, retryable=True)

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] 2025-07-13 23:45:44,403 [AJ_YUkVKLoLhsp8|-|-] WARNING livekit.agents: failed to synthesize speech, retrying in 0.1s

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] Traceback (most recent call last):

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/livekit/plugins/inworld/tts.py", line 241, in _run

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] async for line in resp.content:

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 52, in __anext__

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] rv = await self.read_func()

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] ^^^^^^^^^^^^^^^^^^^^^^

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 352, in readline

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] return await self.readuntil()

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] ^^^^^^^^^^^^^^^^^^^^^^

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 380, in readuntil

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] raise ValueError("Chunk too big")

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] ValueError: Chunk too big

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] The above exception was the direct cause of the following exception:

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] Traceback (most recent call last):

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/livekit/agents/tts/tts.py", line 206, in _main_task

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] await self._run(output_emitter)

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] File "/home/appuser/.local/lib/python3.11/site-packages/livekit/plugins/inworld/tts.py", line 263, in _run

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] raise APIConnectionError() from e

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] livekit.agents._exceptions.APIConnectionError: Connection error. (body=None, retryable=True)

2025-07-13T23:45:44.405 app[d891247be76d98] yyz [info] {"message": "failed to synthesize speech, retrying in 0.1s\nTraceback (most recent call last):\n File \"/home/appuser/.local/lib/python3.11/site-packages/livekit/plugins/inworld/tts.py\", line 241, in _run\n async for line in resp.content:\n File \"/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py\", line 52, in __anext__\n rv = await self.read_func()\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py\", line 352, in readline\n return await self.readuntil()\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/appuser/.local/lib/python3.11/site-packages/aiohttp/streams.py\", line 380, in readuntil\n raise ValueError(\"Chunk too big\")\nValueError: Chunk too big\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/appuser/.local/lib/python3.11/site-packages/livekit/agents/tts/tts.py\", line 206, in _main_task\n await self._run(output_emitter)\n File \"/home/appuser/.local/lib/python3.11/site-packages/livekit/plugins/inworld/tts.py\", line 263, in _run\n raise APIConnectionError() from e\nlivekit.agents._exceptions.APIConnectionError: Connection error. (body=None, retryable=True)", "level": "WARNING", "name": "livekit.agents", "tts": "livekit.plugins.inworld.tts.TTS", "attempt": 1, "streamed": false, "pid": 667, "job_id": "AJ_YUkVKLoLhsp8", "room_name": "-", "call_id": "-", "timestamp": "2025-07-13T23:45:44.403286+00:00"}
t
Thanks for reaching out, Gurinder. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!