Starfall-chips/libs/examples/tts_test
2025-03-25 14:36:38 +03:00

16 lines
285 B
Text

--@name tts
--@author Niko
--@shared
--@include gtts.txt
require("gtts.txt")
if SERVER then
local play = TTS(owner(),"ru",1)
play:setLFO(true)
hook.add("PlayerSay","",function(ply,str)
if ply == owner() then
play:say(str)
end
end)
end