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

Troubleshooting in Windows 7

Open juancadavid opened this issue 7 years ago • 12 comments

Hello,

Succesfully installed in Windows 7. When running the example code (without the export part, of course), I get no sound. I see that in the windows volume mixer (see image below) a couple of "Windows power shell" volume scrollers appear but they disappear after a second, and I get the "text has been spoken" callback in the console, so no errors. image

Any ideas? Thanks!

juancadavid avatar May 14 '17 12:05 juancadavid

Can you manually create and run some speak commands using Powershell and let me know if it's audible? I'm unfamiliar with Windows and can't provide more details, unfortunately.

tlhunter avatar May 30 '17 06:05 tlhunter

Hi! Thanks for your reply. I tried running this script on Powershell and it worked fine: Add-Type -AssemblyName System.speech $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer $speak.Speak('Hello...I am Arun')

Any ideas? Thanks!

juancadavid avatar Jun 05 '17 13:06 juancadavid

I just tried replacing in your script the argument in $speak.Speak(\'[Console]::In.ReadToEnd()\') to just speak a random string, and it works well. Seems like the problem comes from the \'[Console]::In.ReadToEnd()\'. What is that supposed to do?

juancadavid avatar Jun 05 '17 14:06 juancadavid

Sorry, @juancadavid, but I'm going to have to close this as cannot reproduce. Others are able to use this on Windows as well. If you are able to reproduce and can get more details on why it works please reopen a new issue.

tlhunter avatar Nov 06 '17 00:11 tlhunter

I had the same problem.I find the childprocess.spawn is not executed in windows7.But I haven't find out the reason.Who know?

jupanSH avatar Nov 17 '17 13:11 jupanSH

I update the powershell from 2.0 to 5.1。The sound has been out。

jupanSH avatar Nov 19 '17 02:11 jupanSH

@jupanSH does the sound work correctly?

tlhunter avatar Nov 20 '17 00:11 tlhunter

yes

jupanSH avatar Nov 21 '17 11:11 jupanSH

@juancadavid can you upgrade your version of Powershell and let us know if it resolves your issue?

tlhunter avatar Nov 21 '17 21:11 tlhunter

MY win7 is not win7 SP1 system,and the powershell version is 2.0.Firstly I update my system to SP1 ,then install .Net framework required by powershell 5.1.Last I can use say.js to speak the text correctly after poweshell 5.1 had been installed.

jupanSH avatar Nov 24 '17 05:11 jupanSH

Awesome, good to hear. I'll update the documentation to specify the minimum version of powershell.

tlhunter avatar Nov 27 '17 18:11 tlhunter

Just for the record, installing PowerShell 5.1 also fixed the problem for me. However on Windows 7, one thing that the provided examples assume when running the different voices code is that we are on Windows 10 I guess, as David and Zara are W10 voices, but on Windows 7 the only available is Anna. Other than that, working really nice. PD: Also that example plays one text on top of the other. Shouldn't it provide an example on how to wait until the previous text is over and then play the new one?

MrAmericanMike avatar Mar 16 '18 14:03 MrAmericanMike