I want to know how to open mp3 file in python. Help me
4/9/2021 4:01:15 AM
Akira Tatsukane3 Answers
New AnswerMost mp3 files are in binary so i think you can open them using the "b" or "b+" mode in python. with open("test.mp3", "b") as f: # read here
You won't be able to play an mp3 file inside of SoloLearn. To do it on your PC, you will need a module that supports audio files. Here is one example: import playsound playsound.playsound('PATH_TO_MP3/sound.mp3', True)
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message