Programing Code Assistance For Led Mouth on Ten Foot Costume

Yes, the input For the Led Is to be based on voice and a speaker that will be on my shoulder. So the Idea is when I play the sound clips through the speakers the mouth moves and same when I talk. So I gues whether its volume or frequency as long as the mouth moves when those occur. And thank you for your help. XD