Simple auto lip sync script for Unity
Made using AutoLipSync
A simple Unity C# script that will drive a lower jaw based on audio amplitude from an audio clip. It uses a low pass filter to smooth the output. A custom SLATE action is included called “PlayAudioWithLipSync” use it in Slate to drive the jaw in your cutscenes.
*Set the audio source and adjust the sensitivity and min/max to your liking
*When using the Slate action, Slate will populate the Audiosource variable so you can leave it empty. Don’t forget to drag/drop the AutoJawSync script into the field at the bottom of the Slate action.
SLATE cutscene editor is much nicer than Timeline imo as a professional animation filmmaker
-The “Live jaw rotation output” variable is just for debugging purposes, it is the output of the jaw rotation so changing it won’t do anything -This script works best with audio files that have been compressed and don’t have any background noise, so use gate + compression on your audio files for best results. -Package includes working example head model from above gif(Includes texture hence the large file size)