Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

playsound moudle python

>>> from playsound import playsound
>>> playsound('/path/to/a/sound/file/you/want/to/play.mp3')
Comment

how to playsound in python

#TO playsound in your python code you need to install play sound module.
# To install playsound moudule-
#(1). Open Terminal 
#(2). "In terminal only" type "pip install playsound"
# After installing playsound you need to write-
import playsound from playsound
# syntax of playsound command
playsound("C:file_linkfile_name")
# note: ````in python you need to specify path using double back slashes "",
# instead of single forward or back slash````
# please reaad the starting comments also they are very useful(ignore if readed)
# Enjoy :)
Comment

playsound python

pip install playsound
Comment

PREVIOUS NEXT
Code Example
Python :: get n items from dictionary python 
Python :: python tkinter go to another window on button click 
Python :: audacity 
Python :: pandas new df from groupby 
Python :: how to run a function in interval in python 
Python :: python list distinct 
Python :: grassmann formula 
Python :: import a txt file into python 
Python :: Install Basemap on Python 
Python :: extract link from text python 
Python :: python create a matrix with one in diagonal 
Python :: np.concatenate 
Python :: -bash: /usr/local/bin/python3: no such file or directory 
Python :: dataframe to dictionary with one column as key 
Python :: how to get location of word in list in python 
Python :: find absolut vale in python 
Python :: python print string separated by comma 
Python :: how to log ip addresses in python 
Python :: get path of notebook 
Python :: python datetime date only 
Python :: python selenium type in input 
Python :: how to import tkinter in python 
Python :: convert int to hex binary in python 
Python :: find a prime number in python 
Python :: find angle mbc in python 
Python :: remove item from list if it exists python 
Python :: python mock function return value 
Python :: iris dataset python import 
Python :: python json load file 
Python :: click link selenium python 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =