```.venv/lib/python3.13/site-packages/livekit/agen...
# ask-ai
w
Copy code
.venv/lib/python3.13/site-packages/livekit/agents/voice/agent_activity.py", line 1433, in _user_turn_completed_task
    model_name=self.turn_detection.model, model_provider=self.turn_detection.provider
               ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MultilingualModel' object has no attribute 'model'
Getting the above error, it seems to be stemming from internal livekit code
t
Thanks for reaching out, jaswant. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry you're encountering the error
AttributeError: 'MultilingualModel' object has no attribute 'model'
. This usually happens because the
MultilingualModel
class provides a
model
property rather than a direct attribute. Let's work through some steps to get this sorted out together: 1. Make sure you're accessing it correctly as
detector.model
, not as a direct attribute or method. 2. Check that all the necessary model files are downloaded by running
python my_agent.py download-files
. 3. If you've subclassed
MultilingualModel
, please verify that
super().__init__()
is called in your subclass constructor. 4. Also, confirm that your
livekit-plugins-turn-detector
and
livekit-agents
packages are compatible and up to date. You can update them using
pip install livekit-plugins-turn-detector
. If you're still facing issues after these steps, please feel free to share more details about your setup or any custom code you've added. I'm here to help you through this! Sources: LiveKit turn detector plugin | LiveKit Docs | complex-agents/turn-taking/README.md | Speech-to-text (STT) models | LiveKit Docs | livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector...
w
I am just passing the MutlilingualModel to the session for turn detection and not trying to modify at all
t
Thank you for sharing that you're using the
MultilingualModel
directly in the
AgentSession
for turn detection. Let’s walk through some steps together to make sure everything is set up just right: 1. First, please double-check that all the necessary model files are downloaded by running
python your_agent.py download-files
. Sometimes missing files can cause those tricky initialization issues. 2. Next, make sure you’re importing the model correctly with
from livekit.plugins.turn_detector.multilingual import MultilingualModel
. 3. It’s also important to confirm that your
AgentSession
includes all the required components like
stt
,
llm
, and
vad
, along with
turn_detection=MultilingualModel()
. 4. Check that your system has enough resources, such as around 500MB of RAM and supports CPU-based inference, to run the model smoothly. 5. Lastly, please ensure your
livekit-plugins-turn-detector
package is up-to-date and compatible with your version of LiveKit Agents. If you’re still running into issues after these steps, don’t hesitate to share the exact error message and stack trace with me, along with some details about your environment. I’m here to help you get this working perfectly! Sources: examples/drive-thru/drivethru_agent.py | Voice AI quickstart | LiveKit docs | agent.py | LiveKit turn detector plugin | LiveKit Docs | complex-agents/turn-taking/agent.py