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# note: ````in python you need to specify path using double back slashes "\\",
10# instead of single forward or back slash````
11# please reaad the starting comments also they are very useful(ignore if readed)
12# Enjoy :)
1>>> from playsound import playsound
2>>> playsound('/path/to/a/sound/file/you/want/to/play.mp3')
3