Choppy audio & unexpected hangups from react nativ...
# support
b
I implemented the react native code sample from your GitHub in my react native with expo app. The audio replies are choppy. What happens: 1. I'll say something 2. The audio reply comes back, but will randomly stop mid-reply 3. Sometimes the audio starts over 4. The call will hang up while the bot is still replying (no user action taken) I'm running this in the iOS simulator, which I've never had any audio-specific issues with before. It seems to respond to my audio just fine, it's the output that gets wonky.
v
Hi @bmac, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Client SDKs]() * [Vapi iOS SDK]() * [Delete Assistant]() * [Introduction]() -----------------------------
### Answer I'm sorry to hear you're experiencing issues with choppy audio and unexpected hang-ups while using Vapi in your React Native Expo app. The specific problems you're encountering with audio quality and call behavior are not directly addressed within the information sources available to me. However, it's essential to ensure that the SDK and your application are configured correctly and that you're using compatible versions of any libraries or dependencies involved. Ensuring optimal performance in environments like the iOS simulator can sometimes require specific settings or considerations. While I can't provide a direct solution based on the provided information, I recommend reviewing the Vapi documentation and ensuring that your setup aligns with the recommended practices and configurations. Exploring the React Native SDK documentation could provide insights or configurations specific to handling audio and calls more reliably [(1)]() . For more complex issues or if the problem persists, it might be beneficial to look for any known issues on the GitHub repository or reach out to the community for insights. They might have encountered similar challenges and could offer solutions or workarounds.
Got it. Tagging @User for additional help.
b
I should mention I'm using the precise package versions recommended in your docs for Expo.
s
call_id pls
b
fbf3aa58-6006-4dd7-b3eb-de7033e5355b
it seems to work on device, not in simulator.
s
I see then it is some issue with your application I think
b
Hey mate, I tried again. Having a lot of issues with Vapi hanging up calls, on device. I've followed the sample app pretty closely with my code, using all the recommended packages etc. I can't deploy this, huge bummer.
In this call, the assistant ended the call unexpectedly: a8921691-9f9c-4d19-9a62-3070757b272c
Another example: 9aa9ecaf-4b17-4e80-bfe6-2a92431bd4a1
@Sahil
s
which model you are using?
b
I just copied the VapiService.ts file from your react native example app on github. Using gpt-3.5-turbo for chat and am using whatever your default is for text-to-voice, assumign that's ElevenLabs, I haven't passed any special configurations yet. Is that what you're asking?
Saw this is marked as solved @Sahil . This is definitely not solved, still happening.
s
Can you once try another voice provider like deepgram or openai and lmk if you are still facing the issue.
@zoratrox360 could you please help him out with this?
4 Views