Skip to content

Commit

Permalink
cleanup(nui): remove some pointless prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Blumlaut committed Jan 11, 2025
1 parent 2d711f1 commit 7d88f7d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dependencies/nui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@
return speak(data.text)
case "toggle_speak":
ttsEnabled = data.enabled
console.log("toggled:"+data.rate)
ttsRate = parseFloat(data.rate)
case "speak_rate":
console.log("set speak rate:"+data.rate)
ttsRate = parseFloat(data.rate)
default:
return;
Expand All @@ -89,10 +87,8 @@
currentUtterance.cancel()
currentUtterance=undefined
}
console.log("speaking "+text)
speaking = new SpeechSynthesisUtterance(strip(text.toString()));
currentUtterance=window.speechSynthesis
console.log(ttsRate)
speaking.rate = ttsRate;

window.speechSynthesis.speak(speaking);
Expand Down

0 comments on commit 7d88f7d

Please sign in to comment.