robotemi / sdk

temi is an unparalleled robotic platform introducing a new dimension of development - movement. Using temi’s SDK, developers can create new functionalities and introduce new use cases via temi’s Android tablet. temi’s movement and navigation capabilities run off of it's Linux computer and uses a set of 16 sensors including a Lidar, depth cameras, driving cameras, and microphones. We encourage our developer community to suggest and request expanded functionality within the SDK and we will adhere to your needs. We want to enable you to create skills like never seen before! We will be constantly improving the SDK and its documentation. Please feel free to reach out to us with any questions or thoughts at developers@robotemi.com
https://www.robotemi.com/
204 stars 87 forks source link

Wakeup not working #374

Open moritzsu opened 1 year ago

moritzsu commented 1 year ago

Sometimes when I wakeup temi programmaticaly via robot.wakeup() this does not work correctly. I get two onConversationStatusChanged events and after that nothing anymore, temi also does not listen for speech. A short sound is also played when that happens and it hapens often when wifi signal is lost for a short amount of time.

Any ideas/suggestions on how I can fix that?

moritzsu commented 1 year ago

After further investigation the time apart between the two OnConversationStatusChanged Events also differ (IDLE and LISTENING) Sometimes they are 5 seconds apart (case where everything is good) and sometimes only a few milliseconds (case where it does not work), what is the reason for this and is it part of the problem?

zjn0505 commented 1 year ago

The short sound is an indication of network connection.

The speech to text engine is backed by Google ASR engine, and it requires sending streaming requests to their clould.

moritzsu commented 1 year ago

Is there a way that I can check if the wakeup() command was successful then? I am calling wakeup() in a loop so that temi is always listening and this is disrupting the loop rather often.