Demo (require 'luacom').CreateObject("SAPI.SpVoice").Speak"Test OK" have no effect, which use default config should work in stand alone lua, I think.
Default SAPI works async, should keep host process alive till finish, or SAPI.WaitUntilDone(-1) to block return to interpreter from SAPI until finish.
Others to compare:
CreateObject("SAPI.SpVoice").Speak "Test OK" works in Vbs file.
powershell -Command {(new-object -com SAPI.SpVoice).Speak("Test OK")} works in powershell.
Demo
(require 'luacom').CreateObject("SAPI.SpVoice").Speak"Test OK"
have no effect, which use default config should work in stand alone lua, I think. Default SAPI works async, should keep host process alive till finish, orSAPI.WaitUntilDone(-1)
to block return to interpreter from SAPI until finish.Others to compare:
CreateObject("SAPI.SpVoice").Speak "Test OK"
works in Vbs file.powershell -Command {(new-object -com SAPI.SpVoice).Speak("Test OK")}
works in powershell.