SpeechSynthesisUtterance not working in mobile broswer
问题 I am using SpeechSynthesisUtterance in my mobile website. This code is okay when I use it in my desktop version website. But I found that the function is not working in mobile browser in document.ready as below: $(document).ready(function(){ var text_tts="say something"; speakText(text_tts); }); function speakText(text_tts){ var u = new SpeechSynthesisUtterance(); u.text = text_tts; u.lang = 'en-US'; u.rate = 1; u.onend = function(event) { console.log('Finished in ' + event.elapsedTime + '