Vizard 7 » Command Index » Vizard modules » vizact » <vizact>.speak
7.6

<vizact>.speak

Generates a talking action

<vizact>.speak(  
filename  
scale = 1.0  
morph = 'mouth_open'  
threshold  
)  
filename
The name of a wav file that the avatar will speak.
scale = 1.0
A scale factor for the avatars lipflapping movement. For example: if set to 2, the lipflapping will be exaggerated twice as much.
morph = 'mouth_open'
The name of the morph target that represents lipflapping.
threshold

Remarks

This will generate an action that will animate an avatar talking with a given wav file.

Return Value

An action that can be applied to any avatar object

Example

male = viz.add('vcc_male.cfg')
speech = vizact.speak('jfk.wav')

#Animate the avatar with the speech action
male.addAction(speech)

See also

<vizact>.animation
<vizact>.headto
<vizact>.turn
<vizact>.walkTo