it can be done using AE. Basically use reshape to create and open and closed mouth positions.
Then animate the reshape amount to match words.
You can automate this (rather crudely) using AE’s convert audio waveform to keyframes tool.
this is not true cartoon animation, but could work on less detailed cartoons.