It seems that speechSynthesis is not allowed to run without user interaction, on some devices, some of the time. My PC browser used to warn about it, but now it works (I don't know if I managed to accidentally change something about permissions in the meantime), while my Android-powered tablet seems to allow it from localhost
on http
, but disallows it from my production site on https
. Phones always disallow it.
I'm wondering if there is some method of determining whether it's allowed on the running device, so that I can show a notice, or hide the options that offer text-to-speech in my app?