How to control DFplayer Mini Mp3 properly?

i want to put mp3 audio on each of the state in my state machine.. i want to make sure it is synchronize the state and the audio played, please give me some guide so that i work on my project. Thank you.