WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 08-29-2006, 03:51 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Have you tryied using the avatar.speak() command?
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
  #2  
Old 08-30-2006, 12:28 PM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
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))
Reply With Quote
  #3  
Old 08-30-2006, 01:53 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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?
Reply With Quote
  #4  
Old 08-30-2006, 02:55 PM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC