Items with no label
3335 Discussions

real time lip sync

idata
Employee
2,090 Views

Hi

i try to find a system to do a real time lip sync with the 2D or 3D and il want to know if the

RealSense™ Camera (SR300) and the software it's a good way.

And may be if someone have an example

Thank's

Best Regard

Daniel

0 Kudos
4 Replies
MartyG
Honored Contributor III
701 Views

In my years-long use of RealSense with the Unity game engine, I found that whilst the camera could produce mouth open and close expressions when the user opens and closes their mouth slowly, it was impractical for normal live speech lip-sync. This was because the real life lips were moving too fast during talking for the camera to track the movements.

Note: I develop with the original F200 camera. I haven't tried lip syncing with its next generation replacement the SR-300, so my experience is based on the F200.

What I did instead to create lip sync in my PC game was to analyze the volume of microphone input and convert that into a value between 0 (mouth closed) and 1 (mouth fully open). The louder the speech input into the microphone, the wider the animated mouth opened, just like in real life. This approach works excellently.

I have a video of the principle on my YouTube channel.

https://www.youtube.com/watch?v=VBp_9_mVpUw "My Father's Face" Tech Trailer 4 - Lip Synching And Facial Expression From An MP3 - YouTube

0 Kudos
idata
Employee
701 Views

Hi guys,

 

 

Marty, thank you very much for your contribution. It is very good information what you've provided.

 

Daniel, have you checked Marty's post and link?

 

 

Regards,

 

-Pablo
0 Kudos
MartyG
Honored Contributor III
701 Views

Thanks Pablo!

The principle can also be applied to analyzing the volume of a pre-recorded mp3 file to automatically generate lip movements in sync to speech on the track. This allows a facial animation to instantly be localized to any country just by playing an mp3 of audio speech in that language, saving the labor of having to re-record the animation for that dialect. Other facial animations can also be tied into the '0 to 1' volume value to auto-generate movement in the lip shape expression,, eyebrows, eyelids, etc.

I have an unlisted tech test video on my YouTube account that shows the squirrel character from the live lip sync video moving her lips to the tune of the 1990 Disney cartoon TaleSpin. It's a bit rougher than the live lip sync because the volume analysis code is also picking up the theme's background music and sound effects (i./e it's not a "clean" speech recording) but it demonstrates the technique well.

https://www.youtube.com/watch?v=gfOgDF2AixY Auto Speech Test - YouTube

0 Kudos
idata
Employee
701 Views

Hi Daniel,

 

 

Do you still need some assistance on this case?

 

 

Regards,

 

-Pablo
0 Kudos
Reply