Add getter/setter for rate.

This commit is contained in:
Nolan Darilek 2019-09-27 13:07:35 -05:00
parent ca79ca99bd
commit 4893bf7e10

7
TTS.gd
View File

@ -4,6 +4,13 @@ const TTS = preload("godot-tts.gdns")
var tts = TTS.new()
func set_rate(rate):
tts.rate = rate
func get_rate():
return tts.rate
var rate setget set_rate, get_rate
func speak(text, interrupt := true):
tts.speak(text, interrupt)