@refined-appointment-81829, thank you for your quick response. Currently the code is part of a larger application, let me see whether I can create a standalone snippet to reproduce the issue.
Here is some more details about the solution I am trying to build
• User calls a Twilio number, which gets forwarded to Livekit through a TiwML SIP integration.
• LiveKit SIP dispatch rule puts the user in a unique room.
• LiveKit webhook is configured to notify a Python FastAPI application about room creation event.
• The python application uses the room name in the room creation event to add an Agent to the room, create a session, and runs the session as mentioned before.
I am not using the CLI to register workers with LiveKit server or running download-files in the application.
The Python application is running in a docker container in a hosted environment. It is only adding an agent to the room once a user calls through the phone number and gets set up in a room.
This set up is working fine with VAD as the turn detector. However, the turn detection is not optimal and I wanted to try MultilingualModel for turn detection. I am using deepgram as the STT plugin for the session.
Let me know whether I should be using Livekit in a different way for this solution.