Hello, can someone help in calling with ai , i recently upgraded my project in which i upgraded the livekit from 137.0.2 version to 144.0.0. in previous version calling was working fine but when i upgraded the project from then call is connecting with the ai connection is establisng but ai not speaking and microphone not enabling whereas sometimes it is working like if it worked in the first time then in the next call it won’t work like this is happening, before establishing the connection i’m playing the ringtone using expo-audio, microphone permission is granted properly and i’m using physical device(iphone 16pro)
This is the canonical iOS AVAudioSessionownership conflict between expo-audio and LiveKit’s WebRTC audio session, tracked in
LiveKit audio session stops working when using expo-audio to play sounds during an ongoing LiveKit meeting · Issue #286 · livekit/client-sdk-react-native · GitHub, confirmed by the LiveKit team (@xianshijing-lk) as a known limitation. Your “first call works, next one doesn’t” pattern is the tell: after the first call, LiveKit’s VPIO audio unit doesn’t fully release, and the ringtone on the next call collides with the lingering session state. The @livekit/react-native-webrtc 137 >>> 144 jump likely just surfaced the symptom more aggressively, but the
conflict pre-dates it.
Two workarounds from the same thread that have actually worked for people:
- Switch to
useManualAudiomode viaregisterGlobals(...)and manually toggle WebRTC audioenable/disablearound the ringtone (@mayamshah, comment from 2026-04-21). - Patch your sound module with patch-package to stop re-initializing
AVAudioSessionon each play (@tirth0, 2026-02-10), diff is in the issue comments.
A first-class LiveKit API for “play local sound mid-session” is in flight but not shipped. Track #286 for updates.
Cc: @Kanchan_Saxena