Hello fellow MRLians

Today I received a query from one of our newer members, but was unable to reply directly.
It occured to me, if one user has the question, then others may as well.

Below is the query and my attempt to answer it.
Chime in if i make an error

"Hi Ray , I see you have very good knowledge.
Can i ask you,
I use this script
but there is a delay in response for example when i say Open your finger
its opens after maybe 38 seconds
what should I do ? I don't have any experience with python , I just
use the scripts ..
thanks"
 

Personally, i never got around to using thethe finger starter, but looking at the script and making a few assassumption (the source of most errors) i would hazard to suggest either a very slow computer or more likely a slow internet connection.

The script uses webkit for the speech recognition.  This has proven to be reasonably good with a reasonable level of accuracy, however, it is an intinternet based service, using googles services.  If you havea slow internet service, it can have a great impact on the speech recognition service.

While the top end devdevelopers here are looking into technologies to free us of from the internet requirement, it is still a way off yet for a system that works as well as Webkit.

There are alternatives such as sphinx, which i would suggest you read up on. Have a look in the documentation at the top of this page and check out the service matrix,

regards,

Ray

GroG

6 years ago

Hi Ray,

You are correct.   The delay in response is likely to do with an slow internet connection.  Although to be sure we would want a myrobotlab.log file.  Inside are timing diagnostics.

I see that MarySpeech is used which is not affected by slow internet connections.we   MarySpeech works completely locally, its uses more local resources too - so it would be affected by a slow computer or one which has little memory.

Yes, we are continually investigating open source projects (such as Sphinx4) to do speech recognition.  On the speech synthesis side MarySpeech is the leader.

Your answer and references were excellent, thanks for replying to our new guest !

Cheers !

Hello , 
thanks for all ,, 
my internet connection good , and also my device  
I attach the finger and I want to test it , I used this python code (InMoov.minimalFingerStarter.py / https://goo.gl/An9PJ9)  as is put it above , 
but it is not running because there is an error , 
(
------Traceback (most recent call last):  File string, line 50, 
in moduleAttributeError: org.myrobotlab.service.InMoovHand object has no attribute setAutoEnable
at org.python.core.Py.AttributeError(Py.java:205)
at org.python.core.PyObject.noAttributeError(PyObject.java:1013)
at org.python.core.PyObject.__getattr__(PyObject.java:1008)
at org.python.pycode._pyx5.f$0(string:84)
at org.python.pycode._pyx5.call_function(string)
 
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1386)
at org.python.core.Py.exec(Py.java:1430)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267)
at org.myrobotlab.service.Python$PIThread.run(Python.java:160)------ ) 
  
 
I'm so so sorry becase maybe I'm asking maybe stupid quistion , but I'm still a student and I have to learn by myselft and its the first time that I use  python and also deal with arduino ,
 
cheers