mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-22 19:55:57 +00:00
Make this a singleton.
This commit is contained in:
parent
bde8f61b6b
commit
c6da1a0c27
6
TTS.gd
6
TTS.gd
|
@ -1,10 +1,8 @@
|
||||||
extends Object
|
extends Node
|
||||||
|
|
||||||
const TTS = preload("godot-tts.gdns")
|
const TTS = preload("godot-tts.gdns")
|
||||||
var tts
|
|
||||||
|
|
||||||
func _init():
|
var tts = TTS.new()
|
||||||
tts = TTS.new()
|
|
||||||
|
|
||||||
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