The 2D Mouth Match script is a personal endeavor of mine that attempts to automate the daunting task of lipsyncing in animation. You can read more about the development in my blog post.
Here's a quick demo video of the script's results in action. On the right you'll see the transcript and audio alignment generated by Gentle, and on the left is the mouth after it's keyed by the script: