Markus

9 years 11 months ago

from org.myrobotlab.service import Speech
 
import time 
 
 
mouth = Runtime.createAndStart("mouth","Speech")
keyboard = Runtime.createAndStart("keyboard", "Keyboard")
keyboard.addListener("keyCommand", python.getName(), "input")
  
  
def input(cmd):
    global millis
    if (cmd == "S"):
       interval = time.time() -  millis
       millis = time.time()
       print ("        sleep(" + str(round(interval,2) - (0.2)) + ")")
       print ("        i01.head.jaw.moveTo(50)")
       print ("        sleep(0.2)")
       print ("        i01.head.jaw.moveTo(10)")
 
    if (cmd == "A"):
        mouth.audioFile.playFile("C:\Users\Markus\Music\markustest.mp3", False)
        millis = time.time()
 
 

GroG

9 years 11 months ago

Push it Markus !

I want to hear Robyn tell me a story .. with gestures.. and exciting hand movements .. and EMOTION !

I Know You'll Rock It !

Yes that's what I'm aiming for.
So if you have trouble to fall asleep you can play Robyn Inmoov bedtime story on YouTube.haha
Or even better! You can run the program on your own Inmoov.
Peacefully falling asleep while Inmoov tuck you in. Hahaha.