![]() |
lip-synching + Progress Bar
Hello Wizards !!
The "viz.ACTION_END_EVENT" is working fine. Now I would like to optimize one of my functions. 1) My Avatar is lip-synched with a .wav file. 2) I got a progress bar displaying to the user the position in the .wav file while the Avatar is speaking. So, to do that, I've loaded the .wav for the Avatar with the vizact.speak('intro.wav'). But, for the Progress Bar, I must loaded the file again as a VizAudio object to access the getTime() and the getDuration() functions. It's working, but is there a better way to do that ? viz.FOREVER, D. |
You're there ??
Hello ?
I guess that you've forgot about me... D. |
Don't worry, we haven't forgot about you. Yesterday was a holiday.
Here is sample code that will update a progress bar while a speech action is running. It works by starting a timer when the speech begins. The timer uses the action instance to determine the current time of the speech. Code:
import viz |
Coooool !!!
Yeah Man !!! :cool:
I'll try it !!! Thanks !! viz.FOREVER !! D. |
All times are GMT -7. The time now is 04:22 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC