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

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

PREVIOUS NEXT
Code Example
Python :: one line if statement without else 
Python :: python multiline comment 
Python :: python http request params 
Python :: python dictionary add key-value pair 
Python :: how to write in a text file python 
Python :: connect to spark cluster 
Python :: python string isdecimal 
Python :: remove element from dictionary python 
Python :: set column datatype pandas 
Python :: docker django 
Python :: keras declare functional model 
Python :: pandas groupby mean round 
Python :: django collectstatic 
Python :: python binary string to int 
Python :: access first element of dictionary python 
Python :: python invert binary tree 
Python :: python tic tac toe 
Python :: python is folder or file 
Python :: pyspark now 
Python :: how to get int input in python 
Python :: how to install python libraries using pip 
Python :: django in conda 
Python :: Converting Dataframe from the multi-dimensional list 
Python :: extends template django 
Python :: turn list in to word python 
Python :: sqlalchemy create engine MySQL 
Python :: colors in scatter plot python 
Python :: jupyter tabnine for jupyter notebook 
Python :: how to open cmd at specific size using python 
Python :: How to rotate the 2D vector by degree in Python: 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =