Mic access issues & reference to outdated daily-js version
message:
Hi Vapi team,
I'm using your HTML Script Tag SDK on my website (https://www.kiassistent.online/live3) with the following code:
<script>
var vapiInstance = zero;
const assistant = “8080e8cd-e3d0-46a0-b0a3-af43e4e9bf0d”;
const apiKey = “14de5261-66e3-4a88-aa90-b07cf15239e8";
const buttonConfig = {
position: “bottom-right”,
style: {
backgroundColor: "#4CAF50 “,
color: “white”,
borderRadius: “10px”,
padding: “12px 20px”,
fontSize: “16px”,
},
text: “Talk to AI”,
};
(function (d, t) {
var g = document.createElement (t),
s = d.getElementsByTagName (t) [0];
g.defer = true;
g.async = true;
s.parentNode.insertBefore (g, s);
g.onload = function () {
vapiInstance = window.vapisDk.run ({
apiKey: apiKey,
Assistant: assistant,
config: ButtonConfig,
});
};
}) (document, “script”);</script>
I'm getting two error messages in the console:
daily-js version 0.66.0 is no longer supported
→ Can you please update the CDN script to use the latest Daily version?
Ignoring settings for browser- or platform-unsupported input processor (s): audio
→ Microphone access is apparently ignored by the SDK, although navigator.mediaDevices.getUserMedia ({audio: true}) works in my browser and the page is accessible via HTTPS. The iframe (if used) also contains allow="microphone”.
Do you have a solution for this or a new version of the script? I would like to use this in a stable and mobile-friendly way.
Thank you guys in advance!
Best regards
[Your name]
·