Fix JavaScript rate-scaling.

This commit is contained in:
Nolan Darilek 2019-12-31 12:26:26 -06:00
parent bf6372a1a8
commit 3b067faecd

2
TTS.gd
View File

@ -40,7 +40,7 @@ func speak(text, interrupt := true):
if tts != null:
tts.speak(text, interrupt)
elif OS.has_feature('JavaScript'):
var scaled_rate = javascript_rate / 2
var scaled_rate = javascript_rate / 25
var code = """
let utterance = new SpeechSynthesisUtterance("%s")
utterance.rate = %s