Answers for "how to play sounds with python"

6

Play sound in python

import winsound

winsound.PlaySound('sound.wav', winsound.SND_FILENAME)
Posted by: Guest on May-04-2021
1

python3 play a mp3

#pip install playsound
from playsound import playsound
playsound('your mp3 file.mp3')
Posted by: Guest on October-20-2020
1

how to insert sound in python

from playsound import playsound
playsound('audio _file _place/file name')
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language