
WayneA
USA
Asked
— Edited

Quick Question,
Is it me or have you all noticed a slight delay with the SayEzB Voice. In other words, when the command is executed half or most of the words are not being spoken. Has anyone else seen this?
Wayne
My PC is not an i5 or Anything like that. It's a dual core intel processor. 4 gigs of ram running win 7.
In my script I am using the sayezb command once. I noticed after the sleep 2000 I added another sayezb command. That did not miss any words when the command executed. The first instance of sayezb always for me never finishes what I have In the quotation marks.
Wayne mine does that too. Sometimes during playback a stored mp3 "mr roboto" will just repeatedly start itself over several times yet the file is fine. It doesn't happen all the time ao it makes it harder to troubleshoot. Even during the talking between quotes it will miss some of the words but not all the time. Im attributing mine to my network. Im hoping once I replace my cable modem/ router all in one all these troubles will go away. Sometimes my whole robot just goes out of control. In one of those instances my robot ran into the couch with my 3 children on it and proceeded to push the couch across the room. It was actually a funny site to see. Yes my robot is very very strong. Chris
If that is the case then I need a super computer and better hardware then that is not an option for me.
But thanks for the info and help.
I think it a simple matter of resource management. You say you placed a Sleep() command and the second file played? Try placing a Sleep() command before the first one and make sure EZ Robot is not running any other scripts. I don't know what your project looks like but are you running any looping scripts or monitoring any ADC ports? Those actions take a lot of resources and stall performance. If you have any looping scripts make sure you place a short Sleep() command in the loop like 0500 or even 1000.
There is no looping. My code is only 2 lines. Trying to learn. I wanted the robot to introduce itself.
Not sure how to post script here but I can type.
:START SayEzb("Welcome to my robot.") Sleep(4000) SayEzb("Take a look around my shop")
That's it. That's all I have began to figure out so far. The first sayezb command all you hear thru the EZb speaker is "my robot" Then i wait 4 seconds to wait for it to say that. Then the next one comes thru with the entire sentence.
I've noticed that once in a while I'll have a voice file clipped but I'm using files and not Windows voice. However I think it may be the same problem. Try these two scripts and see what happens:
Also I noticed you have a period in your first command. Don't use that. This may not be what is causing the problem but it's unnecessary.
Ok I removed the periods. Added your code. For me still doing the same thing. For now might have to Bluetooth it.
@kamaroman68.... I noticed what you wrote about your robot going uncontrolled sometimes... You're using the Sabertooth right? The sabertooth will "go random" when it first gets a serial command like go forward.... What I found is that before any initial movement commands I send the sabertooth a stop command... eg SendSerial(D0,38400,0) .... Then every command after that works as expected.... I like to use SendSerial(D0,38400,0) to my sabertooth in my connection scrip to prevent exactly what your experiencing....
Sorry about the tiny thread jack..., hope this helps
Cheers Richard