Python has some powerful libraries for listening to audio. The two that stand out are playsound and sounddevice.
playsound is a pure Python, cross platform, single function module with no dependencies for playing sounds.
https://github.com/TaylorSMarks/playsound
sounddevice is a Python module that provides bindings for the PortAudio library and a few convenience functions to play and record NumPy arrays containing audio signals.
https://python-sounddevice.readthedocs.io/en/0.5.1/


