joaen / maya-auto-lip-sync

A tool to automatically generate lip sync animations in Autodesk: Maya using Montreal Forced Aligner.
MIT License
27 stars 6 forks source link

Probelm in Generating Key Frame #3

Closed satori1216 closed 9 months ago

satori1216 commented 1 year ago

Hello joaen, thank you for creating and sharing this script!

I downloaded this script today and currently having some problems when generating the keyframes. The .wav file is resampled to 16kHz mono and has the same name as the .txt file. After I pressed the "Generate Keyframes" button, it showed "Done! Everything took..." in the script editor and then suddenly jumped to the situation that shows in the screenshot below lipsnc_issue

The "Cancel" button did not work, nor were the keyframes generated on the timeline. The progress bar didn't move no matter how long you wait. I also tried several times with different rigs and the results are the same. (I'm using Maya 2022).

Greatly appreciated any solution. Thank you! :)

joaen commented 1 year ago

Hi! Let me see if I can repro this bug. If possible it would be helpful if you could share a link to the wav-file and the txt-file which you are using.

satori1216 commented 1 year ago

I directly downloaded the audio and text files from the google drive link provided in the closed issue of this code: https://drive.google.com/drive/folders/1ghHfuH8O9Xg-8JUCLX91fQIZulmw9doo?usp=sharing and changed them to the same name, which is the t0001.wav and t0001.txt you can see in the screenshot.

rombick commented 9 months ago

I directly downloaded the audio and text files from the google drive link provided in the closed issue of this code: https://drive.google.com/drive/folders/1ghHfuH8O9Xg-8JUCLX91fQIZulmw9doo?usp=sharing and changed them to the same name, which is the t0001.wav and t0001.txt you can see in the screenshot.

comment out lines 305-311 in auto_lip_sync.py and it should work

joaen commented 9 months ago

I just updated the script with two bug fixes: