Create GDScript shim for library, so not all platforms need a GDNative plugin.

This commit is contained in:
Nolan Darilek 2019-09-17 10:12:17 -05:00
parent cb4296861c
commit bde8f61b6b

13
TTS.gd Normal file
View File

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