mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-22 13:45:57 +00:00
Add getter/setter for rate.
This commit is contained in:
parent
ca79ca99bd
commit
4893bf7e10
7
TTS.gd
7
TTS.gd
|
@ -4,6 +4,13 @@ const TTS = preload("godot-tts.gdns")
|
||||||
|
|
||||||
var tts = TTS.new()
|
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):
|
func speak(text, interrupt := true):
|
||||||
tts.speak(text, interrupt)
|
tts.speak(text, interrupt)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user