Hi,
I have an idea of auto lip syncing script, but wondering if Vegas pro API allows me to do that.
My idea is as follows:
1. Draw a humans face without mouth, then save it as PNG.
2. Draw 3 or more pictures of a mouth(ex:closed, half-open, and full-open), then save them as
Transparent PNG.
3. Open VegasPro and start new project. Add face.png on "trackA", add voice.wav on "trackB", then create "trackC" above "trackA".
4. Run the script and it will listen to "trackB" from the start to an end, determines current gain at that moment every 1/8 or 1/12 seconds.
5. While 4 is running, the script also adds one of the mouth pictures on "TrackC" which fits to current gain.
(ex.Adds closed mouth picture as an event at first.
Extend the event until the current gain goes above the threshold.
After reaching the threshold it will adds half-open mouth pic, and extend the event until the current gain go below the threshold which allows script to add another closed mouth pic again, or reaches another threshold which allows script to add full-open mouth pic.)
I have looked for VegasScriptAPI.htm but I only found a property which gets or sets the volume gain value for the audio track, seems won't determine the gain every seconds.
I really don't have any experience of touching C# (only have an experience of touching MATLAB), but if there is a way I'd like to try and any help would greatly be appreciated.
I have an idea of auto lip syncing script, but wondering if Vegas pro API allows me to do that.
My idea is as follows:
1. Draw a humans face without mouth, then save it as PNG.
2. Draw 3 or more pictures of a mouth(ex:closed, half-open, and full-open), then save them as
Transparent PNG.
3. Open VegasPro and start new project. Add face.png on "trackA", add voice.wav on "trackB", then create "trackC" above "trackA".
4. Run the script and it will listen to "trackB" from the start to an end, determines current gain at that moment every 1/8 or 1/12 seconds.
5. While 4 is running, the script also adds one of the mouth pictures on "TrackC" which fits to current gain.
(ex.Adds closed mouth picture as an event at first.
Extend the event until the current gain goes above the threshold.
After reaching the threshold it will adds half-open mouth pic, and extend the event until the current gain go below the threshold which allows script to add another closed mouth pic again, or reaches another threshold which allows script to add full-open mouth pic.)
I have looked for VegasScriptAPI.htm but I only found a property which gets or sets the volume gain value for the audio track, seems won't determine the gain every seconds.
I really don't have any experience of touching C# (only have an experience of touching MATLAB), but if there is a way I'd like to try and any help would greatly be appreciated.