Make this a singleton.

This commit is contained in:
Nolan Darilek 2019-09-24 14:21:05 -05:00
parent bde8f61b6b
commit c6da1a0c27

6
TTS.gd
View File

@ -1,10 +1,8 @@
extends Object
extends Node
const TTS = preload("godot-tts.gdns")
var tts
func _init():
tts = TTS.new()
var tts = TTS.new()
func speak(text, interrupt := true):
tts.speak(text, interrupt)