say.js icon indicating copy to clipboard operation
say.js copied to clipboard

Error: 'powershell' is not recognized as an internal or external command

Open 8o8inCodes opened this issue 7 years ago • 4 comments

So in my case while trying to run the example it gave me this error:

Error: 'powershell' is not recognized as an internal or external command

In order to fix it, I went to the "win32.js" at "say/platform/win32.js" and changed the "COMMAND" constant from 'powershell' to 'start /b powershell'

That fixed the issue.

8o8inCodes avatar Jan 29 '18 13:01 8o8inCodes

Adding powershell to the path fixed it for me

steveboatface avatar Apr 15 '18 16:04 steveboatface

@steveboatface There's a problem with that, not everyone would like to add powershell to their paths, they want to just install and use the package.

8o8inCodes avatar Apr 16 '18 07:04 8o8inCodes

@8o8inCodes, is there a way to do it so that power shell is not required in windows? I AM having problems with the stop function. It will end the child process of the event, but not the child process (power shell) that gets kicked off in Windows, so speech runs on.

steveboatface avatar Apr 16 '18 14:04 steveboatface

Another old-fashioned option is to use Windows Scripting Host (cscript.exe) to run a VBScript file.

Gerhut avatar Aug 25 '21 08:08 Gerhut