
frankcottnj
Why is it my pc sound card works off the say script but I don't get any sound off the sayezb script. I wrote script and when I changed all the
sayezb (" I see a")
to just the sound board
say("I see a")
it only works out of the soundboard. Also the ez robot speaker does work and tells me when wifi connection is made. I did look and search for this but didn't get any answers. I also get this when I try to use the ezb to speak: " Error on line 7: Cannot change synthesizer's output while speaking. " I also tried the speech synthesis window and when I click for the ezb to speak, nothing comes out, only works with pc sound, Here is the error I got window
Speech Synthesis Error (SayEZB): System.InvalidOperationException: Cannot change synthesizer's output while speaking. at System.Speech.Internal.Synthesis.VoiceSynthesis.SetOutput(Stream stream, SpeechAudioFormatInfo formatInfo, Boolean headerInfo) at System.Speech.Synthesis.SpeechSynthesizer.SetOutputToNull() at System.Speech.Synthesis.SpeechSynthesizer.SetOutputStream(Stream stream, SpeechAudioFormatInfo formatInfo, Boolean headerInfo, Boolean closeStreamOnExit) at System.Speech.Synthesis.SpeechSynthesizer.SetOutputToAudioStream(Stream audioDestination, SpeechAudioFormatInfo formatInfo) at EZ_B.SpeechSynth.SayToStream(String msg) at EZ_Builder.UCForms.FormSpeechSynthesis.ARQMA3s6X6c(Object , EventArgs )
frank
Deleting Windows speech files will help you with your issue if you're hearing a voice speak through the PC/laptop. The Windows 8.1 fix is for using third party voices where some users can only use the default voices that comes with Windows.
Try another machine like you say, and report back here with the results. Good luck.
BTW, you say about stopping the RSS news script. Do you mean to stop it talking? If so, you will need to add a new script control or phrase in the speech rec control, and add the following script...
@DJ.
He did mention that the EZ-B does have sound...
In your project, i would highly recommend paying attention to blank lines in quotes. Any characters inside a quote are incredibly important to the function.
Well, that's what this does to the software...
Notice how the second command in your speech recognition has a space after the quote and before the https...? That is an invalid URL. I notice you might be a little spacebar happy
. There's a lot of spaces inside of quotes all over the place in the project. This will of course, return errors and produce unusual results. Pay attention to blank spaces inside of quotes, because that can cause issues.
That space wouldn't be an issue for the speech synthesis, but it is a habit you should kick in the butt now before it turns into future frustrations
All of the speech recognition and PandoraBot controls are set to use the PC Speaker, not the EZ-B. This leads me to wonder if you have the volume turned up on your computer?
Lastly, the Connection Control has a very broken script with orphan Semicolons just hanging around... Again, those shouldn't be there and also giving you errors
The entire project is really full of syntax errors with blank spaces or strange random characters in code...
Maybe turn up the volume on your computer speakers and try it again
Oh, and fix the code!
Uh oh - okay, this is the last advice, maybe...
The speech recognition has commands to "detect faces" and colors - however, there is also a large amount of code in the Tracking Start of the Camera Control. So both are detecting the same thing? The commands are similar and there's a logic overlap - i am unable to predict the behavior of how what the outcome would be because, but i will recommend that you choose to use one or the other. Meaning, use your detection in a script outside of the Camera, or use the script in the Tracking Start of the camera - either way, pick one.
Eak okay - and in the Tracking Stop script of the Camera Control is...
There is no PointAndTrack script... so that will cause errors in the camera control.
Maybe your robot is trying to talk, but the recursive logic is creating infinite loops of stuff. Can you start with a blank project and add the Speech Synthesis control? Just use that and see what your outcome is...
Also, turn your volume up
Thanks DJ, that may do the trick. Also I noticed the ezb is not connecting until I manually connect it. Ok I saw what is happening, I have to manually connect the ez b controller, then the scripts now work out of the ez b when using the sayezb command. Finally, thank you. Now I can start the next step hip hip hooray! Love this community. frank
So all this time the EZ-B wasn't actually connected to ARC? That explains why you couldn't hear any of the SayEZB() scripts out of it. Glad you figured it out.
@frankcottnj What do you mean manually connect? Do you mean typing in the ip address as opposed to using the scan tool? The ezb does not auto connect to ARC (not currently, anyway) you have to use the connection control to either type in the ezb's ip address manually or use the scan tool (the antenna looking thingy) to locate the ezb on your network (if in client mode that is) and then click connect... The flashing blue or green led on the ezb will change to solid if it is connected to ARC...
No prob man! Glad to hear it's all good to go. We all get confused or overwhelmed sometimes. Man, the other day I spent an hour trying to get my mouse to work when I finally realized the batteries were in backward. Ha, not always easy being human - but at least it's an adventure!