python error [SOLVED]

hello, I am still asking for your help, I wish a servo control by voice command, but I have a python error, missing something?

GroG's picture

Nice ! .. you sent a noWorky

Nice ! .. you sent a noWorky !   Now your getting the flow :)

Ok - Your script it terribly outdated...   I'll send out a bat-signal and see if any of the guys working with the latest MRL have a InMoov2.min.py or can make a small script for you to test...

You can also try InMoov2.min.py 
https://github.com/MyRobotLab/myrobotlab/blob/master/src/resource/Python/examples/InMoov2.min.py

 

revesecret's picture

I have ssay

I have ssay https://github.com/MyRobotLab/myrobotlab/blob/master/src/resource/Python/examples/InMoov2.min.py the script but does not work, python error, thank you for your help grog

GroG's picture

if it noWorky send a noWorky

if it noWorky send a noWorky ;)

revesecret's picture

ok sent

ok sent

GroG's picture

Your closer ... The problem

Your closer ...

The problem now is format - the copy & paste of the script you did removed necessary Python formatting :(

Copy & Paste from this link - it has no formatting

https://raw.githubusercontent.com/MyRobotLab/myrobotlab/master/src/resource/Python/examples/InMoov2.min.py

 

 

revesecret's picture

the script works I hear his

the script works I hear his voice, and error message at the end that says sérial device is null

GroG's picture

noWorky

noWorky

revesecret's picture

ok sent

ok sent

GroG's picture

you executed the python

you executed the python script Twice...

So, usually I try to make the Python re-entrant, which means .. you "can" execute it twice without bad effects, but this may not be the case..

The first time it executed I can see the last log statement..

"I am Listening" .. which usually means its waiting for a command, but I don't see any verbal command.. Did you try something like "rest" or "open hand" ?

If so it did not see it...  Do you have a microphone?  Have you verfied that it works ?

revesecret's picture

  hello, grog, yes my

 
hello, grog, yes my microphone works, but I can not do

 

wvantoorn's picture

Maybe try another file, maybe

Maybe try another file, maybe a file from gael.3 file they work here so they should work with you.

 

there are many scripts in the repo, do they all not work? And iif a file does not work, quit mrl, look for zombie java files, and restart mrl, and use another file. If that does not work, send again a noworky.

and if the sliders move manually, they should work with voice, and it is important to put the mic right in front of your mouth and put a hand over the mic and mouth so it gets the command better. This is important for cheap mics.

if it listens and does not hear anything, and your mic works fine, you could also turn up the volume for the mic so it is more sensitive. 

But when started a new script, check if you can slide manually before giving a voice command to see if the connected arduino works!

revesecret's picture

hello, I used a different

hello, I used a different computer, I disabled the original microphone to the computer and use a headset, and I put java update, the voice command and I replied but comfirme servo is turned ??
manual servo works

revesecret's picture

the voice command works,

the voice command works, resolved, thank you for grog and those who helped me onsmiley