To do this, you’ll need to create multiple templates and apply them individually by speaker. (This feature is not yet supported in a single step.)
You can create an animated caption by selecting the desired text, then going to Effect > Add Animated Caption.