import playsound code example
Example 1: playsound conda
>>> from playsound import playsound
>>> playsound('/path/to/a/sound/file/you/want/to/play.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&")
Example 3: playsound
Cannot find the specified file. Make sure the path and filename are correct.