How do i make a characters lips match the sounds?

I’m creating a flash game, and I’m having trouble making the guys lips match up with the words he says. Any hints?