Audio to 2d lip sync animation in javascript

I researched for a few days how to convert an MP3 voice-over to an animated lip synced character video, like Adobe character animation. I like 2d animations.

I found crazytalk tool to create such animations offline. I am looking for a javascript/python library which can compile an animation and produce a video. Or an easy approach to implement such a library.