Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript testing speechSynthesis voices Reply To: testing speechSynthesis voices

#169147
magician11
Participant

Maybe this code is better… but still the same issue of the delay.

        var testPhrase = new SpeechSynthesisUtterance("Hello there!");

        for (var voice in allVoices) {

            console.log(allVoices[voice]);
            testPhrase.voice = allVoices[voice];
            window.speechSynthesis.speak(testPhrase);
        }