initVoiceTips(urlTex) {
let initAudio = document.getElementById("initAudio");
initAudio.preload = "auto";
initAudio.src = urlTex; // url
if (navigator.userAgent.indexOf("MicroMessenger") > 0) {
if (window.WeixinJSBridge) {
window.WeixinJSBridge.invoke("getNetworkType", {}, function (e) {
// IOS 11
initAudio.play();
});
}
}
}
the above code, by obtaining Baidu voice, the input audio, can be played normally under Android and OIS11, but the sound cannot be played on the iPhone version 11 of IOS.