![]() |
|
#1
|
|||
|
|||
Have you tryied using the avatar.speak() command?
__________________
Paul Elliott WorldViz LLC |
#2
|
|||
|
|||
Yes, I have tried both the regular speak command and the one shown below. They both keep the avatar's lips moving a lot after the wav clip stops.
Thanks Code:
def Introduction(instructor): walk = instructor.walkto(0,0,10,1,260,2) #Clear all the avatar's actions, reposition it, and start the walk action instructor.clear(viz.ALL) instructor.visible(1) speech = instructor.speak(neutralpreanagram,.007) action1 = instructor.act(walk) action2 = instructor.turn(180) action3 = instructor.state(1) action4 = speech action5 = instructor.walkto(8,0,10,1,260,2) action6 = instructor.walkto(8,0,-25,1,260,2) instructor.act(vizact.sequence(action1,action2,action3,action4,action5,action6)) |
#3
|
|||
|
|||
Are you placing the speak_sync.py file in the vizard plug-ins folder? Also are you using vizact.speak_sync(..) to generate the action?
|
#4
|
|||
|
|||
I just moved the speak_sync.py document to the plugins folder (C:\Program Files\Vizard25\plug-ins). Here is the import statements and the current version of the code. I am still getting the same behavior. The avatar still keeps talking after the wav file is done. I can send you the wav file via email if that would help. Please give me an email address if that would help.
Thanks Code:
import viz from whrandom import randint,uniform import math import vizmat import time import vizinfo from random import random import speak_sync Code:
def Instructions(instructor): walk = instructor.walkto(0,0,-2,1,260,2) #Clear all the avatar's actions, reposition it, and start the walk action instructor.clear(viz.ALL) speech = vizact.speak_sync('NeutralPostAnagram.wav') action1 = instructor.act(walk) action2 = instructor.turn(180) action3 = instructor.state(1) action4 = speech action5 = instructor.walkto(5,0,-3) instructor.act(vizact.sequence(action1,action2,action3,action4,action5)) #viz.killtimer(START_AVATAR) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|