mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-09-19 21:25:57 +00:00
14 lines
195 B
GDScript3
14 lines
195 B
GDScript3
|
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()
|