diff --git a/index.html b/index.html index 0cff9f4..1b71737 100644 --- a/index.html +++ b/index.html @@ -54,12 +54,15 @@ display: block; margin: 0 auto; } - input#submit, input#download-button, input#copy-link-button { + input#submit, input#download-button, input#copy-link-button, input#playback-speed-input { width: 248px; text-align: center; display: block; margin: 1em auto; } + input#playback-speed-input { + width: 240px ; + } input#copy-link-button { margin-bottom: 0; } @@ -127,7 +130,8 @@

phoneme synthesis

function process() { uipa = document.getElementById("ipa-input").value; - + playbackSpeed = document.getElementById("playback-speed-input").value; + document.getElementById("download-button").disabled = true; // nothing to process @@ -261,8 +265,8 @@

phoneme synthesis

uipa = uipa.replace(mappings[i].src, mappings[i].dest); //console.log(mappings[i].src + uipa); } - console.log(uipa); - spoken = meSpeak.speak('[['+uipa+']]', { 'rawdata': 'mime' }); + console.log(uipa); + spoken = meSpeak.speak('[['+uipa+']]', { 'rawdata': 'mime' , 'speed': playbackSpeed}); if (spoken == null) { alert("An error occurred: speaking failed."); } @@ -278,6 +282,7 @@

phoneme synthesis

Convert IPA phonetic notation to speech

+