diff --git a/index.html b/index.html
index 0cff9f4..0e0eacd 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;
}
@@ -121,13 +124,17 @@
phoneme synthesis
function copy_link_button() {
uipa = document.getElementById("ipa-input").value;
- url = window.location.href.split('?')[0] + "?w=" + uipa;
+ playbackSpeed = document.getElementById("playback-speed-input").value;
+
+ url = window.location.href.split('?')[0] + "?w=" + uipa + "&s=" + playbackSpeed;
+
copyToClipboard(url);
}
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 +268,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 +285,7 @@ phoneme synthesis
Convert IPA phonetic notation to speech