diff --git a/TTS.gd b/TTS.gd index ba8a8d0..ed766e6 100644 --- a/TTS.gd +++ b/TTS.gd @@ -6,7 +6,7 @@ var TTS var tts = null func _ready(): - if OS.has_feature("JavaScript"): + if OS.get_name() == "Server" or OS.has_feature("JavaScript"): return elif Engine.has_singleton("AndroidTTS"): tts = Engine.get_singleton("AndroidTTS") @@ -79,4 +79,4 @@ func singular_or_plural(count, singular, plural): func _exit_tree(): if not tts or not TTS: return - tts.free() + tts.free() \ No newline at end of file diff --git a/godot-tts.gdnlib b/godot-tts.gdnlib index 2c3f863..8e93148 100644 --- a/godot-tts.gdnlib +++ b/godot-tts.gdnlib @@ -1,6 +1,5 @@ [entry] -Server.64="res://addons/godot-tts/target/debug/libgodot_tts.so" Windows.64="res://addons/godot-tts/target/debug/godot_tts.dll" X11.64="res://addons/godot-tts/target/debug/libgodot_tts.so" diff --git a/godot-tts.gdnlib.release b/godot-tts.gdnlib.release index 2e22313..1419fa3 100644 --- a/godot-tts.gdnlib.release +++ b/godot-tts.gdnlib.release @@ -1,6 +1,5 @@ [entry] -Server.64="res://addons/godot-tts/target/release/libgodot_tts.so" Windows.64="res://addons/godot-tts/target/release/godot_tts.dll" X11.64="res://addons/godot-tts/target/release/libgodot_tts.so"