# pip3 install playsound
from playsound import playsound as play
play('sound.mp3')
#!/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)
# import required module
from playsound import playsound
# for playing note.wav file
playsound('/path/note.wav')
print('playing sound using playsound')
import vlc
import time
p = vlc.MediaPlayer("fade music.mp3")
p.play()
time.sleep(60)
p.stop()
$ pip install playsound
winsound.PlaySound(r'C:sound.wav', winsound.SND_ASYNC)
from playsound import playsound as play
play('audio.mp3')
playsound('audio.mp3')