From 8496c0c26078dbb59e7ab0d6b1f87d4ee5b8969e Mon Sep 17 00:00:00 2001 From: Joe Rickard Date: Sat, 4 Jan 2020 12:29:40 +0000 Subject: [PATCH] Added input area for text talking speed #19 --- index.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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

+