diff --git a/speak-easy-synthesis/script.js b/speak-easy-synthesis/script.js index d4f22d6..e2c3526 100644 --- a/speak-easy-synthesis/script.js +++ b/speak-easy-synthesis/script.js @@ -15,6 +15,11 @@ var voices = synth.getVoices(); for(i = 0; i < voices.length ; i++) { var option = document.createElement('option'); option.textContent = voices[i].name + ' (' + voices[i].lang + ')'; + + if(voices[i].default) { + option.textContent += ' -- DEFAULT'; + } + option.setAttribute('data-lang', voices[i].lang); option.setAttribute('data-name', voices[i].name); voiceSelect.appendChild(option);