THIS IS URGENT Camera-Error. Microphone permission...
# support
v
@wrinkly_cow It sounds like you're experiencing a browser-specific issue with microphone access for the VAPI service. Since you've confirmed that microphone access is enabled and it works fine on other browsers, this could be related to browser permissions, compatibility issues, or a temporary glitch. Here are a few steps you can take to troubleshoot the issue: 1. **Check Browser Compatibility**: Ensure that the browser you're using is compatible with VAPI. Some APIs may have specific requirements or may not be fully supported on all browsers. 2. **Browser Permissions**: Double-check the browser's microphone permissions. Even if it's enabled, sometimes browsers have site-specific permissions that need to be allowed. 3. **Clear Cache and Cookies**: Sometimes, clearing the browser's cache and cookies can resolve unexpected issues. 4. **Browser Updates**: Make sure your browser is up to date. Outdated browsers may have issues with modern APIs. 5. **Extensions and Add-ons**: Disable any browser extensions or add-ons that could be interfering with microphone access or the VAPI. 6. **Console Errors**: Review the console errors you've attached for any specific error messages that could point to the root cause. If there's an error code or message, it can help in diagnosing the issue. 7. **Network Issues**: Check if there are any network-related issues that might be affecting the service. 8. **Contact Support**: If none of the above steps work, it might be best to contact support with the details of the issue, including the browser version, console errors, and any other relevant information. If you'd like, I can assist you in closing this support ticket once the issue is resolved, or if you need to contact support for further assistance, please let me know.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
w
It's a wordpress site. I tested on a different website and it works fine, so it's something on my site. I disabled all plugins, removed all CSP headers, and edited htaccess file and it's still not working, just not sure what else to do
@User Urgent
@User Hello?
s
@wrinkly_cow ?
w
Really dude it took you 3 hours and you're responding with a question mark
s
I respond with`?` to chedk if your active.
@wrinkly_cow how your integrating vapi code with wordpress website?
w
var vapiInstance = null; const assistant = "4d2ef818-cfd0-468f-aec0-3b85a1be80f7"; const apiKey = "def6ed87-ba8e-4ff2-82b8-18ee9145a8a4"; const buttonConfig = { position: "bottom-right", offset: "40px", width: "100px", height: "100px", idle: { color:
rgb(93, 254, 202)
, type: "round", icon:
https://unpkg.com/lucide-static@0.321.0/icons/audio-lines.svg
, }, loading: { color:
rgb(93, 124, 202)
, type: "round", icon:
https://unpkg.com/lucide-static@0.321.0/icons/audio-lines.svg
, }, active: { color:
rgb(255, 0, 0)
, type: "round", icon:
https://unpkg.com/lucide-static@0.321.0/icons/phone-off.svg
, }, }; (function (d, t) { var g = document.createElement(t), s = d.getElementsByTagName(t)[0]; g.src = "https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js"; g.defer = true; g.async = true; s.parentNode.insertBefore(g, s); g.onload = function () { console.log("Vapi SDK loaded"); const vapi = window.vapiSDK.run({ apiKey: apiKey, squad: assistant, config: buttonConfig, }); vapiInstance = vapi; // Event listeners vapiInstance.on('speech-end', () => { console.log('Speech has ended'); }); vapiInstance.on('call-start', () => { console.log('Call has started'); }); vapiInstance.on('call-end', () => { console.log('Call has stopped'); }); vapiInstance.on('volume-level', (volume) => { console.log(
Assistant volume level: ${volume}
); }); vapiInstance.on('message', (message) => { console.log(message); }); vapiInstance.on('error', (e) => { console.error(e); }); }; })(document, "script");
s
do wordpress offers custom code or developer mode if yes then please export the script from there, because browsers is blocking access.
w
That doesn't make sense, how is it blocking access? The script is being initialized correctly because it's being displayed on the screen
s
Because these website builders inject/place html code as components something and then browser has blocked the permissions.
It has happened with others using wix as well, same error message.
w
I mean the script is being loaded directly in the header. When I tested it on the other site, I loaded the script in the same way and it worked
s
then how can it be blocked.
check dm let's resolve this.
@wrinkly_cow is resolved now?
because of no response closing now.