I'm having a weird issue with the web speech api. I've set up some code to speak a string of text - very rarely, it speaks it in a normal voice ("Alex" from Dictation and Speech Settings in Mac OS X). But usually, it speaks in the voice "Albert".
I'm looking at the w3c web speech api listed here:
https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-ttsgetvoices
and there is an interface called
SpeechSynthesisVoiceList {}
I am trying to access this functionality, but I can't.
How would I access this voice list? I'm using chrome canary, and I've tried numerous methods of doing this. What I would expect to work would be:
var u = new SpeechSynthesisUtterance();
console.log(u.getVoices());
or
var u = new SpeechSynthesisVoiceList();
console.log(u);
I've also run:
console.log(window)
and I see numerous things regarding the web speech api and speech synthesis, but nothing about voices.