View Single Post
  #2  
Old 05-25-2012, 01:22 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Solution to my problem

I've found a solution to my problem and I thought it would be nice to share it with you. The example that I give here is based on the avatar 'casual20_m_highpoly' from the complete character set. The steps are the same for all the other male avatars of the complete character set.

The solution in second steps:
- First, you need to follow the steps of the document 'Use Characters in Vizard.pdf' which is on DVD 1 of the complete character set. After those steps, you should have a folder (in this example the folder is: casual20_highpoly) with all the files for your avatar.
- Second, open 'casual20_m_highpoly.cfg' and add the line speak_morph=casual20_m_highpoly_talk.CMF at the end of the .cfg file.

Now, with this code, you can make your complete character move it's mouth in sync with a .wav file:
Code:
avatar = viz.add('casual20_highpoly/casual20_m_highpoly.cfg', pos = [0,.15,.5], euler = [180,0,0])
speech = vizact.speak('YOUR .WAV FILE HERE',1, sync = True)
avatar.addAction(speech, pool = 1)
I have not tested this solution for all the complete characters, but I assume it should work for all of them similarly.
Reply With Quote