opt.value = voice.identifier; | opt.value = voice.identifier; | ||||
console.log('Adding voice: ' + opt.text); | console.log('Adding voice: ' + opt.text); | ||||
sel.add(opt); | sel.add(opt); | ||||
if (voice.name === 'english') { | if (voice.name === 'English (Great Britain)') { | ||||
opt.id = 'default-voice'; | opt.id = 'default-voice'; | ||||
opt.selected = true; | opt.selected = true; | ||||
} | } |