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

后端 未结 3 1814

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.

3条回答
  •  独厮守ぢ
    2020-12-06 12:14

    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

提交回复
热议问题