godot-tts/TTS.gd

14 lines
195 B
GDScript3
Raw Normal View History

extends Object
const TTS = preload("godot-tts.gdns")
var tts
func _init():
tts = TTS.new()
func speak(text, interrupt := true):
tts.speak(text, interrupt)
func stop():
tts.stop()