Web speech API: Consistently get the supported speech synthesis voices on iOS safari
问题 I'm trying to get the list of supported speech synthesis voices on iOS Safari. As per the API, I should be able to get an array of voices by calling: window.speechSynthesis.getVoices(); Sometimes this gives me list of voices, other times it doesn't. See the following jsfiddle: https://jsfiddle.net/sq7xf327/ If I open this on my iPhone 5 (iOS 8.1.3), I don't get back consistent results. Sometimes I get back all 37 voices, and other times I get returned 0 voices. If you keep on refreshing it