Hi Inmoov team,

we are looking for the command to move jaw to perticular angle,  ( with out speak ).

like  

      i01.head.jaw.moveTo(50)

       sleep(0.2)

       i01.head.jaw.moveTo(10)

moz4r

7 years 1 month ago

Hi ! a fix is now pushed inside the last build about jaw + audiofile

 

 

Hi Moz4r sir,

I am using the last solution for the audio mp3 file and jaw movment as per your last update.

with the new command added in 1_AudioFile .py  in C:\mrl\InMoov\services  folder 

the command is 

try:
    if MouthControlActivated and mouthControlAudiofile:i01.mouthControl.onStartSpeaking("This is a fake text, a long fake text, very long.")
  except:
    pass

but it run for multiple mp3 file.

and when we update this command in newly created guesture file  it gives error of  

syntaxerror mismatched input '' expecting dedent" for that line .

for example 

def whataboutstarwars():

  i01.setNeopixelAnimation("Ironman", 255, 255, 255, 1)
  sleep(3)
  i01.stopNeopixelAnimation()
  i01.startedGesture()
  x = (random.randint(1, 3))
  if x == 1:
      fullspeed()
      i01.moveHead(130,149,87,80,100)
      AudioPlayer.playFile(RuningFolder+'/system/sounds/R2D2.mp3')
  try:
    if MouthControlActivated and mouthControlAudiofile:i01.mouthControl.onStartSpeaking("This is a fake text, a long fake text, very long..")
  except:
    pass
      
how to rectify this error.
since i want to run multiple mp3 file with this command as new guesture.