how to make python program play audio code example
Example 1: play music from python
from playsound import playsound
playsound('audio.mp3')
Example 2: python mac play audio
import os
# Everything stops when played
os.system("afplay sound.wav")
# Everything continues when played
os.system("afplay sound.wav&")