From 7af737ebaa2a161ff345440c2f6f7f29dbb77e1a Mon Sep 17 00:00:00 2001 From: steveseguin Date: Sat, 8 Jun 2024 18:39:06 -0400 Subject: [PATCH 1/2] volume slider for tts added to dock --- dock.html | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/dock.html b/dock.html index e5ee9b98..355517a5 100644 --- a/dock.html +++ b/dock.html @@ -98,6 +98,25 @@ top: 7px; position: relative; } + + .volume-container { + position: relative; + display: inline-block; + } + + .volume-slider { + position: absolute; + bottom: 40px; /* Adjust as needed to position above the button */ + left: 50%; + transform: translateX(-50%); + display: none; + z-index: 10; + cursor: pointer; + } + + .volume-container:hover .volume-slider { + display: block; + } @keyframes float { 0% { @@ -1803,8 +1822,11 @@
- - + +
+ + +
@@ -3007,7 +3029,9 @@ if (urlParams.has("volume")) { volume = urlParams.get("volume") || 1; volume = parseFloat(volume); + document.getElementById('volumeSlider').value = volume*100; } + var voiceLatency = 4; // 0 slowest, but best quality; 4 is fastest, but worst quality if (urlParams.has("latency")) { @@ -3104,7 +3128,7 @@ } else { speechInput.voice = voice; } - + console.log("vooumlume:"+volume); speechInput.volume = volume; speechInput.rate = rate; speechInput.pitch = pitch; @@ -5183,6 +5207,10 @@

Messages

\ getById("pinned").appendChild(element); applyHiddenState(element); } + + document.getElementById('volumeSlider').addEventListener('input', function() { + volume = this.value/100; + }); function deleteMessage(element) { syncDataP2P({ deleteMessage: element.dataset.mid }, false, true); From 62672d6de94b8e343c9d050445b18c4d737c7b82 Mon Sep 17 00:00:00 2001 From: steveseguin Date: Sun, 9 Jun 2024 11:05:32 -0400 Subject: [PATCH 2/2] temp fix --- featured.html | 1 - index.html | 1 - 2 files changed, 2 deletions(-) diff --git a/featured.html b/featured.html index 1789ea4d..14cbeb5f 100644 --- a/featured.html +++ b/featured.html @@ -1,4 +1,3 @@ - diff --git a/index.html b/index.html index 933de4c8..12a8e425 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ -