python play mp3 in background

Solutions on MaxInterview for python play mp3 in background by the best coders in the world

showing results for - "python play mp3 in background"
Raphael
30 Oct 2018
1#TO playsound in your python code you need to install play sound module.
2# To install playsound moudule-
3#(1). Open Terminal 
4#(2). "In terminal only" type "pip install playsound"
5# After installing playsound you need to write-
6import playsound from playsound
7# syntax of playsound command
8playsound("C:\\file_link\\file_name")
9# this will run in bakground also
10# note: ````in python you need to specify path using double back slashes "\\",
11# instead of single forward or back slash````
12# please reaad the starting comments also they are very useful(ignore if readed)
13# Enjoy :)