We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d711f1 commit 7d88f7dCopy full SHA for 7d88f7d
dependencies/nui/index.html
@@ -69,10 +69,8 @@
69
return speak(data.text)
70
case "toggle_speak":
71
ttsEnabled = data.enabled
72
- console.log("toggled:"+data.rate)
73
ttsRate = parseFloat(data.rate)
74
case "speak_rate":
75
- console.log("set speak rate:"+data.rate)
76
77
default:
78
return;
@@ -89,10 +87,8 @@
89
87
currentUtterance.cancel()
90
88
currentUtterance=undefined
91
}
92
- console.log("speaking "+text)
93
speaking = new SpeechSynthesisUtterance(strip(text.toString()));
94
currentUtterance=window.speechSynthesis
95
- console.log(ttsRate)
96
speaking.rate = ttsRate;
97
98
window.speechSynthesis.speak(speaking);
0 commit comments