mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-25 07:05:56 +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")
|
TTS = preload("godot-tts.gdns")
|
||||||
if TTS and (TTS.can_instance() or Engine.editor_hint):
|
if TTS and (TTS.can_instance() or Engine.editor_hint):
|
||||||
tts = TTS.new()
|
tts = TTS.new()
|
||||||
|
if tts:
|
||||||
|
if not tts is JNISingleton:
|
||||||
self.add_child(tts)
|
self.add_child(tts)
|
||||||
if self.are_utterance_callbacks_supported:
|
if self.are_utterance_callbacks_supported:
|
||||||
tts.connect("utterance_begin", self, "_on_utterance_begin")
|
tts.connect("utterance_begin", self, "_on_utterance_begin")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user