godot-tts/TTS.gd

12 lines
171 B
GDScript3
Raw Normal View History

2019-09-24 19:21:05 +00:00
extends Node
const TTS = preload("godot-tts.gdns")
2019-09-24 19:21:05 +00:00
var tts = TTS.new()
func speak(text, interrupt := true):
tts.speak(text, interrupt)
func stop():
tts.stop()