dry-helmet-74553
07/25/2025, 2:03 PMtall-airline-16756
07/25/2025, 2:03 PMtall-airline-16756
07/25/2025, 2:04 PMsession = AgentSession(
turn_detection=MultilingualModel(),
stt=deepgram.STT(model="nova-2", language="es"),
# ... vad, stt, tts, llm, etc.
)
• If you want the agent to dynamically switch languages during a conversation, you can implement a method to update both STT and TTS language settings. For example: async def _switch_language(self, language_code: str) -> None:
if self.tts is not None:
self.tts.update_options(language=language_code)
if self.stt is not None:
deepgram_language = self.deepgram_language_codes.get(language_code, language_code)
self.stt.update_options(language=deepgram_language)
self.current_language = language_code
• Ensure you map standard language codes to provider-specific ones if needed. For example, with Deepgram: self.deepgram_language_codes = {
"en": "en",
"es": "es",
"fr": "fr-CA",
"de": "de",
"it": "it"
}
• For Twilio SIP integration, the language settings are managed in the agent code as described above. The SIP integration itself handles telephony routing and does not affect language configuration.
Adjust these settings in your agent's configuration to ensure the desired language is used at the start of the call.dry-helmet-74553
07/25/2025, 2:11 PMtall-airline-16756
07/25/2025, 2:12 PMUse the server API's deleteRoom function: Think of this as your "all done" button that closes out the session for everyone and tidies things up on the server.
My recommendation? Go ahead and delete the room when your call is finished. This keeps your dashboard nice and tidy, and prevents any unnecessary active sessions from sticking around. Easy peasy! 😊dry-helmet-74553
07/25/2025, 2:13 PMtall-airline-16756
07/25/2025, 2:14 PMroomCreate permission, and you're good to go.
Here's a friendly heads up: When you delete a room, the server will close it out completely - disconnecting all participants and removing it from the room store. This works whether the room is packed or totally empty. Pretty straightforward, right? 👍 Sources: Managing rooms | LiveKit Docs | livekit-api/livekit/api/room_service.py | livekit-api/src/services/room.rs | src/main/kotlin/io/livekit/server/RoomServiceClient.kt | protobufs/rpc/room.protodry-helmet-74553
07/25/2025, 2:15 PMtall-airline-16756
07/25/2025, 2:16 PMdry-helmet-74553
07/25/2025, 2:21 PMtall-airline-16756
07/25/2025, 2:22 PMpsrpc.DeadlineExceeded error that says "room subscription timed out."
This could be happening because of a few things like wonky internet, a slow server, or just some temporary technical hiccups. Don't worry - these things happen! 😊 Sources: pkg/sip/inbound.godry-helmet-74553
07/25/2025, 2:25 PMtall-airline-16756
07/25/2025, 2:26 PM