Answers for "use sound in python"

6

Play sound in python

import winsound

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

how to open sound file in python

# playsound module

from playsound import playsound
playsound('audio.mp3')   # way to your audio file
Posted by: Guest on June-01-2021

Browse Popular Code Answers by Language