quick-park-32742
08/21/2025, 1:40 PMTypeError: ChunkedStream._run() takes 1 positional argument but 2 were given when deploying Rime TTS agent to LiveKit Cloud.
### Environment Details
- Platform: LiveKit Cloud (Production)
- Region: us-east
- TTS Plugin: livekit-plugins-rime (official PyPI version)
### Error Details
python
File "/home/appuser/.local/lib/python3.11/site-packages/livekit/agents/tts/tts.py", line 231, in _main_task
await self._run(output_emitter)
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ChunkedStream._run() takes 1 positional argument but 2 were given
### Agent Configuration
python
from livekit.plugins import rime, speechmatics, openai
from livekit.agents import AgentSession
session = AgentSession(
stt=speechmatics.STT(
transcription_config=speechmatics.types.TranscriptionConfig(
language="en",
end_of_utterance_silence_trigger=0.3
)
),
llm=openai.LLM(model="gpt-4o-mini"),
tts=rime.TTS(
model="arcana",
speaker="astra"
),
vad=silero.VAD()
)
### Version Conflict Issue
- WORKING: livekit-agents==1.0.20 (works perfectly in local development)
- BROKEN: livekit-agents>=1.2.0 (ChunkedStream bug with Rime TTS)
- FORCED: LiveKit Cloud rejects 1.0.20 with error:
package livekit-agents version ==1.0.20 is too old, please upgrade to 1.2.0
### Request for LiveKit Support
Either:
1. Fix the ChunkedStream bug in livekit-agents 1.2.x with Rime TTS
2. Or allow livekit-agents 1.0.20 on LiveKit Cloud deployment
### Impact
Cannot deploy our conversational AI agent to LiveKit Cloud due to this version conflict. Rime TTS is essential for our use case - we specifically need the high-quality arcana model. So any idea to fix this?tall-airline-16756
08/21/2025, 1:46 PMtall-airline-16756
08/21/2025, 1:47 PMChunkedStream._run() in the Rime TTS plugin doesn’t match what the framework expects.
Here’s what you can try to fix it:
• Make sure you’re using the latest version of the livekit-plugins-rime package. You can update it by running pip install --upgrade livekit-plugins-rime.
• If that doesn’t do the trick, the Rime TTS plugin might need an update to work smoothly with LiveKit Agents 1.2.x. In that case, reaching out to the plugin maintainers could be the best next step.
Feel free to reach out if you need any more help or if the problem sticks around after updating. I’m here to help!
Sources: livekit-plugins/livekit-plugins-hume/livekit/plugins/hume/tts.py