Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python play sound

# pip3 install playsound
from playsound import playsound as play
play('sound.mp3')
Comment

python 3 play sound

#!/usr/bin/env python3
# Import playsound module
from playsound import playsound
 
# Input an existing wav filename
wavFile = input("Enter a wav filename: ")
# Play the wav file
playsound(wavFile)
 
# Input an existing mp3 filename
mp3File = input("Enter a mp3 filename: ")
# Play the mp3 file
playsound(mp3File)
Comment

how to insert sound in python

from playsound import playsound
playsound('audio _file _place/file name')
Comment

how to play audio in python

# import required module
from playsound import playsound

# for playing note.wav file
playsound('/path/note.wav')
print('playing sound using playsound')
Comment

play sound on python

import  vlc
import time

p = vlc.MediaPlayer("fade music.mp3")
p.play()
time.sleep(60)
p.stop()
Comment

install play sound python terminal

$ pip install playsound
Comment

play sound python

winsound.PlaySound(r'C:sound.wav', winsound.SND_ASYNC)
Comment

python play sound

from playsound import playsound as play
play('audio.mp3')
Comment

python sound

playsound('audio.mp3')
Comment

PREVIOUS NEXT
Code Example
Python :: python click buttons on websites 
Python :: import mean absolute error 
Python :: import csv file using pandas 
Python :: disable csrf token django 
Python :: numpy for data science 
Python :: export pandas dataframe as excel 
Python :: pandas - from umeric to string 
Python :: python border 
Python :: how to find element in selenium by class 
Python :: python install command in linux 
Python :: pd read csv unname 
Python :: permanent redirect django 
Python :: change the current working directory in python 
Python :: python capitalize each word 
Python :: How to generate the power set of a given set, in Python? 
Python :: ticks font size matplotlib 
Python :: keyerror dislike_count pafy 
Python :: matplotlib label axis 
Python :: python how to set the axis ranges in seaborn 
Python :: user agent for python 
Python :: how to replace a word in csv file using python 
Python :: sklearn random forest regressor 
Python :: python execute string 
Python :: python check if folder is empty 
Python :: pandas remove time from datetime 
Python :: tkfiledialog python 3 example 
Python :: python write array to file 
Python :: read os.system output python 
Python :: timedelta to float 
Python :: list to json python 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =