To remember a speech, composition, etc., in one's head.
To remember a speech, composition, etc., and say it perfectly.