Answers for "how to play soundfile 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

Code answers related to "how to play soundfile in python"

Browse Popular Code Answers by Language