if ?.mp3 is played python code code example
Example: python mac play audio
import os
# Everything stops when played
os.system("afplay sound.wav")
# Everything continues when played
os.system("afplay sound.wav&")
import os
# Everything stops when played
os.system("afplay sound.wav")
# Everything continues when played
os.system("afplay sound.wav&")