aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2022-06-16 19:34:46 +0100
committerNat Lasseter <user@4574.co.uk>2022-06-16 19:34:46 +0100
commit45efb4237fb6a98ddab0bb0034b53a1ea393da82 (patch)
treeaabfd21c3f2da81778828494758d5e3b683342f9
parentdabbd8e956c4af470d0ee00b4eebc4afac278223 (diff)
Actually this is annoying and would require boring work to make it say things correctly.HEADmain
-rw-r--r--planed.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/planed.html b/planed.html
index 177ee2a..955d0fa 100644
--- a/planed.html
+++ b/planed.html
@@ -37,6 +37,7 @@ div.msg {
const div = document.getElementById("log");
let ws = new WebSocket("ws://plane.4574.co.uk:80");
let loglen = 0;
+ /*
let voices = [];
speechSynthesis.onvoiceschanged = function() {
voices = speechSynthesis.getVoices().filter(
@@ -45,6 +46,7 @@ div.msg {
}
);
};
+ */
ws.onmessage = function(ev) {
loglen += 1;
@@ -52,10 +54,12 @@ div.msg {
if (loglen > logmax)
document.getElementById("msg" + (loglen - logmax)).remove();
+ /*
let utter = new SpeechSynthesisUtterance(ev.data);
utter.voice = voices[Math.floor(Math.random() * voices.length)];
utter.rate = 1.3;
speechSynthesis.speak(utter);
+ */
};
function rantime() {