VAPI SDK doesn't work on Android Chrome
# support
p
works everywhere else but stream doesn't go through on android browser like chrome even if permission is granted.. why is this? can someone please help. i trired everything from my side. other browser works.. but this doesn't
https://vapi.ai/community/m/1386623671027761263 exactly this.. appearently i am not only one.. there is bad bug in system
tried timeout thing.. didn't work ..15s are also not enough lol
@Vapi ?
anyone? @Kings_big💫 @Shubham Bajaj @arthur ?
k
Share call_id
p
cc13b2fd-152d-4558-9178-ed4c0bce4302
cc13b2fd-152d-4558-9178-ed4c0bce4302
eb05f63f-bf7b-4803-9ad9-fe8aa4bfbf76
all of them say : assistant didn't receive voice same call worked on pixel phone, oppo phone... but samsung! never did it once
browser: chrome
@Kings_big💫 did you get chance to look at this?
k
Looking into it
Have you try clear browser memory for vapi and then try in incognito mode, If the issue persists after completing these steps, please don't hesitate to notify me so we can further investigate and resolve the problem..
p
yes.. tried doing it.. i think i found probable cause which might come in production for others too.. i checked vapi's node modules and vapi is also internally creating audio stream.. our product flow is we show screen to accept permissions and then invoke vapi sdk.. so our audio stream remains open and vapi also tries to open one.. causing a conflict. i found vapi's web sdk supports passing custom audio stream.. i did that and probably it is working now. this wasn't documented anywhere
Copy code
// Initialize VAPI with our audio track or disable audio initially
      vapi = new Vapi(publicKey, undefined, {}, {
        audioSource: providedAudioTrack || false, // Use our track or disable
        startAudioOff: !providedAudioTrack, // Start with audio off if no track provided
      });
i think it was same reason causing echo issues where agent talks to itself which i raised previously. mostly samsung and some other's chrome forks have stricter implementation for WebRtc.. causing issue on only speific devices. If someone relies solely on vapi creating and handling audio video stream they won't face issue.
@Kings_big💫 just fyi
its working now!!! woh finally
c
Glad the issue was resolved. Please reach out to us if you have any other questions regarding this issue
3 Views