This is more of a graphic thing than a coding thing, although you need to handle it through code of course. You would need some images representing parts of the speech.. check here - http://animation.about.com/od/flashanim ... phonem.htm
Once you have your images..
1) randomly select an image
2) assign a random duration for that image to stay showing
It does look quite convincing when it's done right.