Search code examples
pythonmacosaudio

How to trigger from Python playing of a WAV or MP3 audio file on a Mac?


I'm looking for an elegant way, without a ton of dependencies as in some of the solutions I googled up.

Thanks for any ideas.


Solution

  • As far as I know PyGame is the most portable way to play music: http://www.pygame.org/docs/ref/music.html

    You can find its package here: http://www.pygame.org/download.shtml