You need a compositing or editing program, like After Effects, Final Cut Pro, or Adobe Premiere. If you have a Mac you can use iMovie. Most editing programs have a subtitle feature, the compositing ones sometime don't, but you can import a layer with text on it made in Photoshop, etc and layer it over your animation.