**LiveKit Agent ChunkedStream Bug fix??** **Proje...
# ask-ai
q
## LiveKit Agent ChunkedStream Bug fix?? ### Project Description Building a conversational AI agent with: - STT: Speechmatics (speech-to-text) - LLM: OpenAI GPT-4o-mini (language model) - TTS: Rime.ai TTS with arcana model (text-to-speech) - Framework: LiveKit Agents ### Problem Summary
TypeError: 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
Copy code
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
Copy code
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:
Copy code
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?
t
Thanks for reaching out, Emilio. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! This error is happening because the Rime TTS plugin and the updated LiveKit Agents framework (1.2.x) aren’t quite on the same page yet. Specifically, the method signature for
ChunkedStream._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