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