jaw movement command

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's picture

Hi ! a fix is now pushed

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

 

 

sunilskar's picture

is it in the version of 2557.

is it in the version of 2557.

moz4r's picture

It's from yesterday version

It's from yesterday version 2562

sunilskar's picture

audio mp3 file running with jaw movment

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.