python listen to audio output mac code example Example: play music from python from playsound import playsound playsound('audio.mp3')