python play sound library code example
Example 1: Play sound in python
import winsound
winsound.PlaySound('sound.wav', winsound.SND_FILENAME)
Example 2: python play music
import sys
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
'playsound'])
import playsound
playsound("MyPath\\MySound.mp3")