mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-21 23:55:57 +00:00
Fix Android initialization.
This commit is contained in:
parent
0abf1ffcdd
commit
d58bb881e5
2
TTS.gd
2
TTS.gd
|
@ -21,6 +21,8 @@ func _init():
|
|||
TTS = preload("godot-tts.gdns")
|
||||
if TTS and (TTS.can_instance() or Engine.editor_hint):
|
||||
tts = TTS.new()
|
||||
if tts:
|
||||
if not tts is JNISingleton:
|
||||
self.add_child(tts)
|
||||
if self.are_utterance_callbacks_supported:
|
||||
tts.connect("utterance_begin", self, "_on_utterance_begin")
|
||||
|
|
Loading…
Reference in New Issue
Block a user