how to check if input file is mp3 in python code example Example: play music from python from playsound import playsound playsound('audio.mp3')