# 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 vlc
import time
p = vlc.MediaPlayer("fade music.mp3")
p.play()
time.sleep(60)
p.stop()
import IPython
IPython.display.Audio("my_audio_file.mp3")
winsound.PlaySound(r'C:sound.wav', winsound.SND_ASYNC)
from playsound import playsound as play
play('audio.mp3')
import IPython
IPython.display.Audio("my_audio_file.mp3")
import IPython
IPython.display.Audio("my_audio_file.mp3")
import IPython
IPython.display.Audio("my_audio_file.mp3")